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.

Convert::ToString Method (String^)

 

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

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

public:
static String^ ToString(
	String^ value
)

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:
© 2017 Microsoft