Mono Class Library: System.IntPtr Overview | Members

System.IntPtr.Zero Field

Represents a pointer or handle that has been initialized as zero. [Edit]

Value: 0

public static readonly IntPtr Zero

Remarks

Note:

The value of this field is not null, but is instead a pointer which has been assigned the value zero. Use this field to efficiently determine whether an instance of IntPtr has been set to a value other than zero. For example, if ip is a IntPtr instance, using ip != IntPtr.Zero is more efficient than ip != new IntPtr(0) to test if ip has been set to a value other than zero.

[Edit]

Requirements

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