System::IConvertible::ToString method

IConvertible::ToString() const method

Analog of C# Object.ToString() method. Enables converting custom objects to string.

virtual String System::Object::ToString() const

ReturnValue

String representation as provided by final class.

See Also

IConvertible::ToString(System::SharedPtr<System::IFormatProvider>) method

Converts the value of this instance to an equivalent System::String using the specified culture-specific formatting information.

virtual System::String System::IConvertible::ToString(System::SharedPtr<System::IFormatProvider> provider)=0
ParameterTypeDescription
providerSystem::SharedPtr<System::IFormatProvider>A System::IFormatProvider interface implementation that supplies culture-specific formatting information.

ReturnValue

A System::String instance equivalent to the value of this instance.

See Also