Mono Class Library: System Namespace

System.IntPtr Structure

An implementation-specific type that is used to represent a pointer or a handle. [Edit]

See Also: IntPtr Members

[System.Runtime.InteropServices.ComVisible(true)]
public struct IntPtr : System.Runtime.Serialization.ISerializable

Thread Safety

This type is safe for multithreaded operations.

Remarks

The IntPtr type is designed to be an implementation-sized pointer. An instance of this type is expected to be the size of a native int for the current implementation.

For more information on the native int type, see Partition II of the CLI Specification.

Note:

The IntPtr type provides CLS-compliant pointer functionality.

IntPtr instances can also be used to hold handles.

The IntPtr type is CLS-compliant while the UIntPtr type is not. The UIntPtr type is provided mostly to maintain architectural symmetry with the IntPtr type.

[Edit]

Requirements

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