mscorlib(4.0.0.0) API with additions
System.Reflection.Pointer Class Reference

Provides a wrapper class for pointers. More...

Inheritance diagram for System.Reflection.Pointer:
[legend]
Collaboration diagram for System.Reflection.Pointer:
[legend]

Static Public Member Functions

static unsafe object Box (void *ptr, Type type)
 Boxes the supplied unmanaged memory pointer and the type associated with that pointer into a managed T:System.Reflection.Pointer wrapper object. The value and the type are saved so they can be accessed from the native code during an invocation. More...
 
static unsafe void * Unbox (object ptr)
 Returns the stored pointer. More...
 

Additional Inherited Members

Detailed Description

Provides a wrapper class for pointers.

Definition at line 11 of file Pointer.cs.

Member Function Documentation

◆ Box()

static unsafe object System.Reflection.Pointer.Box ( void *  ptr,
Type  type 
)
static

Boxes the supplied unmanaged memory pointer and the type associated with that pointer into a managed T:System.Reflection.Pointer wrapper object. The value and the type are saved so they can be accessed from the native code during an invocation.

Parameters
ptrThe supplied unmanaged memory pointer.
typeThe type associated with the ptr parameter.
Returns
A pointer object.
Exceptions
T:System.ArgumentExceptiontype is not a pointer.
T:System.ArgumentNullExceptiontype is null.

Definition at line 38 of file Pointer.cs.

◆ Unbox()

static unsafe void* System.Reflection.Pointer.Unbox ( object  ptr)
static

Returns the stored pointer.

Parameters
ptrThe stored pointer.
Returns
This method returns void.
Exceptions
T:System.ArgumentExceptionptr is not a pointer.

Definition at line 65 of file Pointer.cs.


The documentation for this class was generated from the following file: