Mono Class Library: System.IntPtr Overview | Members

System.IntPtr.ToInt32 Method

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

[System.Runtime.ConstrainedExecution.ReliabilityContract(System.Runtime.ConstrainedExecution.Consistency.WillNotCorruptState, System.Runtime.ConstrainedExecution.Cer.Success)]
public int ToInt32 ()

Returns

A int containing the same value as the current instance. [Edit]

Exceptions

TypeReason
OverflowExceptionThe current platform is not a 32-bit platform and the value of the current instance is greater than int.MaxValue or less than int.MinValue. [Edit]

Remarks

Documentation for this section has not yet been entered. [Edit]

Requirements

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