Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Char::ToString Method (IFormatProvider^)

 

Converts the value of this instance to its equivalent string representation using the specified culture-specific format information.

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

public:
virtual String^ ToString(
	IFormatProvider^ provider
) sealed

Parameters

provider
Type: System::IFormatProvider^

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

Return Value

Type: System::String^

The string representation of the value of this instance as specified by provider.

The provider parameter is ignored; it does not participate in this operation.

The following code example demonstrates an overload of ToString.

using namespace System;
int main()
{
   char ch = 'a';
   Console::WriteLine( ch ); // Output: "a"
   Console::WriteLine( Char::ToString( 'b' ) ); // Output: "b"
}

.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show:
© 2017 Microsoft