String.ToString Method (IFormatProvider)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Returns this instance of String; no actual conversion is performed.

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

public string ToString(
	IFormatProvider provider


Type: System.IFormatProvider

(Reserved) An object that supplies culture-specific formatting information.

Return Value

Type: System.String

The current string.

provider is reserved, and does not currently participate in this operation.

Because this method simply returns the current string unchanged, there is no need to call it directly.

.NET Framework
Available since 1.1
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top