IntPtr Operators and Type Conversions

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 Explicit(Int32 to IntPtr) Converts the value of a 32-bit signed integer to an IntPtr.
Public operator Static member Explicit(Int64 to IntPtr) Converts the value of a 64-bit signed integer to an IntPtr.
Public operator Static member Explicit(IntPtr to Void*) Converts the value of the specified IntPtr to a pointer to an unspecified type.
Public operator Static member Explicit(IntPtr to Int64) Converts the value of the specified IntPtr to a 64-bit signed integer.
Public operator Static member Explicit(IntPtr to Int32) Converts the value of the specified IntPtr to a 32-bit signed integer.
Public operator Static member Explicit(Void* to IntPtr) 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
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft