Convert.ToString Method (String, IFormatProvider)

 

Returns the specified string instance; no actual conversion is performed.

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

static member ToString : 
        value:string *
        provider:IFormatProvider -> string

Parameters

value
Type: System.String

The string to return.

provider
Type: System.IFormatProvider

An object that supplies culture-specific formatting information. This parameter is ignored.

Return Value

Type: System.String

value is returned unchanged.

The following example calls the ToString method with a String parameter. The method returns the unmodified String without referencing the IFormatProvider object.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: