A platform-specific type that is used to represent a pointer or a handle.
Assembly: mscorlib (in mscorlib.dll)
Thetype exposes the following members.
|Equals||Returns a value indicating whether this instance is equal to a specified object. (Overrides ValueType.Equals(Object).)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)|
|GetHashCode||Returns the hash code for this instance. (Overrides ValueType.GetHashCode().)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|ToInt32||Converts the value of this instance to a 32-bit signed integer.|
|ToInt64||Converts the value of this instance to a 64-bit signed integer.|
|ToPointer||Converts the value of this instance to a pointer to an unspecified type.|
|ToString||Converts the numeric value of the current object to its equivalent string representation. (Overrides ValueType.ToString().)|
|Equality||Determines whether two specified instances of are equal.|
|Explicit(Int32 to IntPtr)||Converts the value of a 32-bit signed integer to an .|
|Explicit(Int64 to IntPtr)||Converts the value of a 64-bit signed integer to an .|
|Explicit(IntPtr to Void*)||Converts the value of the specified to a pointer to an unspecified type.|
|Explicit(IntPtr to Int64)||Converts the value of the specified to a 64-bit signed integer.|
|Explicit(IntPtr to Int32)||Converts the value of the specified to a 32-bit signed integer.|
|Explicit(Void* to IntPtr)||Converts the specified pointer to an unspecified type to an .|
|Inequality||Determines whether two specified instances of are not equal.|
The type is designed to be an integer whose size is platform-specific. That is, an instance of this type is expected to be 32-bits on 32-bit hardware and operating systems, and 64-bits on 64-bit hardware and operating systems.
The type can be used by languages that support pointers, and as a common means of referring to data between languages that do and do not support pointers.
objects can also be used to hold handles. For example, instances of are used extensively in the System.IO.FileStream class to hold file handles.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.