Mono Class Library: System.IntPtr Overview | Members

System.IntPtr.ToPointer Method

Converts the value of the current instance to a pointer to void. [Edit]

[System.CLSCompliant(false)]
[System.Runtime.ConstrainedExecution.ReliabilityContract(System.Runtime.ConstrainedExecution.Consistency.WillNotCorruptState, System.Runtime.ConstrainedExecution.Cer.Success)]
public void* ToPointer ()

Returns

A pointer to void. [Edit]

Remarks

This member is not CLS-compliant. For a CLS-compliant alternative, use IntPtr.ToInt32.

Note: A pointer to void points to memory containing data of an unspecified type.

[Edit]

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0