IntPtr Operators and Type Conversions

IntPtr Operators and Type Conversions

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

The IntPtr type exposes the following members.

  NameDescription
Public operator Static member Addition Adds an offset to the value of a pointer.
Public operator Static member Equality Determines whether two specified instances of IntPtr are equal.
Public operator Static member Narrowing(Int32 to IntPtr) Converts the value of a 32-bit signed integer to an IntPtr.
Public operator Static member Narrowing(Int64 to IntPtr) Converts the value of a 64-bit signed integer to an IntPtr.
Public operator Static member Narrowing(IntPtr to Int64) Converts the value of the specified IntPtr to a 64-bit signed integer.
Public operator Static member Narrowing(IntPtr to Void*) Converts the value of the specified IntPtr to a pointer to an unspecified type.
Public operator Static member Narrowing(IntPtr to Int32) Converts the value of the specified IntPtr to a 32-bit signed integer.
Public operator Static member Narrowing(Void* to IntPtr) Security Critical. Converts the specified pointer to an unspecified type to an IntPtr.
Public operator Static member Inequality Determines whether two specified instances of IntPtr are not equal.
Public operator Static member Subtraction Subtracts an offset from the value of a pointer.
Top

Show:
© 2017 Microsoft