This documentation is archived and is not being maintained.

IntPtr Operators and Type Conversions

.NET Framework 1.1

The operators and type conversions of the IntPtr structure are listed here. For a complete list of IntPtr structure members, see the IntPtr Members topic.

Public Type Conversions

public operatorstatic (Shared in Visual Basic)Equality Operator

Supported by the .NET Compact Framework.

Determines whether two specified instances of IntPtr are equal.
public operatorstatic (Shared in Visual Basic)Inequality Operator

Supported by the .NET Compact Framework.

Determines whether two specified instances of IntPtr are not equal.
public operatorstatic (Shared in Visual Basic)Int32 to IntPtr Conversion

Supported by the .NET Compact Framework.

Converts the value of a 32-bit signed integer to an IntPtr.
public operatorstatic (Shared in Visual Basic)Int64 to IntPtr Conversion

Supported by the .NET Compact Framework.

Converts the value of a 64-bit signed integer to an IntPtr.
public operatorstatic (Shared in Visual Basic)IntPtr to Int32 Conversion

Supported by the .NET Compact Framework.

Converts the value of the specified IntPtr to a 32-bit signed integer.
public operatorstatic (Shared in Visual Basic)IntPtr to Void* Conversion

Supported by the .NET Compact Framework.

Converts the value of the specified IntPtr to a pointer to an unspecified type.
public operatorstatic (Shared in Visual Basic)IntPtr to Int64 Conversion

Supported by the .NET Compact Framework.

Converts the value of the specified IntPtr to a 64-bit signed integer.
public operatorstatic (Shared in Visual Basic)Void* to IntPtr Conversion

Supported by the .NET Compact Framework.

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

See Also

IntPtr Structure | System Namespace

Show: