IntPtr.ToString Method (String)


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


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"). For more information about numeric format specifiers, see the Standard Numeric Format Strings topic.

The return value is formatted using the invariant culture.

Universal Windows Platform
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Return to top