IntPtr.ToString Method (String)

July 28, 2014

Converts the numeric value of the current IntPtr object to its equivalent string representation.

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

public string ToString(
	string format
)

Parameters

format
Type: System.String
A format specification that governs how the current IntPtr object is converted.

Return Value

Type: System.String
The string representation of the value of the current IntPtr object.

If the format parameter is null or an empty string (""), the return value is formatted with the general format specifier ("G").

The return value is formatted using the invariant culture.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2014 Microsoft