IntPtr Explicit Conversion Operators

 

Converts a specified data type to an IntPtr value, or an IntPtr value to a specified data type.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticExplicit(Int32 to IntPtr)

Converts the value of a 32-bit signed integer to an IntPtr.

System_CAPS_puboperatorSystem_CAPS_staticExplicit(Int64 to IntPtr)

Converts the value of a 64-bit signed integer to an IntPtr.

System_CAPS_puboperatorSystem_CAPS_staticExplicit(IntPtr to Int32)

Converts the value of the specified IntPtr to a 32-bit signed integer.

System_CAPS_puboperatorSystem_CAPS_staticExplicit(IntPtr to Int64)

Converts the value of the specified IntPtr to a 64-bit signed integer.

System_CAPS_puboperatorSystem_CAPS_staticExplicit(IntPtr to Void*)

Converts the value of the specified IntPtr to a pointer to an unspecified type.

System_CAPS_puboperatorSystem_CAPS_staticExplicit(Void* to IntPtr)

Converts the specified pointer to an unspecified type to an IntPtr.

Return to top
Show: