System::IConvertible::ToDecimal 方法

IConvertible::ToDecimal method

使用指定的特定文化格式信息,将此实例的值转换为等效的 System::Decimal 数字。

virtual System::Decimal System::IConvertible::ToDecimal(System::SharedPtr<System::IFormatProvider> provider)=0
ParameterType描述
providerSystem::SharedPtr<System::IFormatProvider>提供特定文化格式信息的 System::IFormatProvider 接口实现。

ReturnValue

一个等效于此实例值的 System::Decimal 数字。

另见