ToString()

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

Arguments

ParameterTypeDescription
providerSystem::SharedPtr<System::IFormatProvider>A System::IFormatProvider interface implementation that supplies culture-specific formatting information.

Return Value

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

IConvertible::ToString() const method

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

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

Return Value

String representation as provided by final class.

See Also