Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class System.​Reflection.​Pointer

Assembly: System.Runtime

Inheritance: object → Pointer

Implemented Interfaces

Provides a wrapper class for pointers.

Methods

public static object
Box​(Void* ptr, Type type)
Boxes the supplied unmanaged memory pointer and the type associated with that pointer into a managed <see cref="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.
Returns A pointer object.
ptr The supplied unmanaged memory pointer.
type The type associated with the <paramref name="ptr" /> parameter.
public bool
Equals​(object obj)
Returns a value that indicates whether the current object is equal to a specified object.
Returns <see langword="true" /> if the current instance is equal to the specified object; otherwise, <see langword="false" /> .
obj The object to compare with this instance.
public int
GetHashCode​()
Returns the hash code for the current object.
Returns A 32-bit signed integer hash code.
public static Void*
Unbox​(object ptr)
Returns the stored pointer.
Returns This method returns void.
ptr The stored pointer.
protected void
Finalize​()
Inherited from object
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
public Type
GetType​()
Inherited from object
Gets the <see cref="T:System.Type" /> of the current instance.
Returns The exact runtime type of the current instance.
protected object
MemberwiseClone​()
Inherited from object
Creates a shallow copy of the current <see cref="T:System.Object" /> .
Returns A shallow copy of the current <see cref="T:System.Object" /> .
public string
ToString​()
Inherited from object
Returns a string that represents the current object.
Returns A string that represents the current object.