System.IntPtr.ToString Method

Returns a string representation of the value of the current instance.

Syntax

public override string ToString ()

Returns

A string representation of the current instance.

Remarks

Note:

If IntPtr.Size for the current instance is 4, IntPtr.ToString is equivalent to int.ToString(); otherwise, this method is equivalent to long.ToString().

This method overrides object.ToString.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0