System::IConvertible::ToString 方法

IConvertible::ToString() const method

相当于 C# Object.ToString() 方法。支持将自定义对象转换为字符串。

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

ReturnValue

String representation as provided by final class.

另见

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

使用指定的特定区域性格式信息,将此实例的值转换为等效的 System::String

virtual System::String System::IConvertible::ToString(System::SharedPtr<System::IFormatProvider> provider)=0
参数类型描述
providerSystem::SharedPtr<System::IFormatProvider>提供区域特定格式化信息的 System::IFormatProvider 接口实现。

ReturnValue

一个等同于此实例值的 System::String 实例。

另见