Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft