Pointer

Pointer

System.Reflection (mscorlib.dll) sealed class

This class allows access to direct pointers to .NET objects through two static methods . Unbox( ) returns a void* pointer to the passed object and pins it, not allowing the garbage collector to move its place in memory, and Box( ) returns control over the object to the .NET runtime.

 public sealed class  Pointer  : System.Runtime.Serialization.ISerializable {  // Public Static Methods  public static object  Box  (void   *ptr   , Type   type   );    public static void*  Unbox  (object   ptr   ); } 


C# in a Nutshell
C # in a Nutshell, Second Edition
ISBN: 0596005261
EAN: 2147483647
Year: 2005
Pages: 963

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net