ToString Method (String)

Convert.ToString Method (String)

 

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

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

static member ToString : 
        value:string -> string

Parameters

value
Type: System.String

The string to return.

Return Value

Type: System.String

value is returned unchanged.

The following example passes a string to the ToString(String) method and calls the Object.ReferenceEquals method to confirm that the method returns the original string. The example also calls the String.IsInterned method to ensure that the two strings are not identical because the original string is interned.

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

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft