System::Runtime::Serialization::IFormatterConverter::Convert 方法

IFormatterConverter::Convert(System::SharedPtr<Object>, const TypeInfo&) method

RTTI 信息。

virtual System::SharedPtr<Object> System::Runtime::Serialization::IFormatterConverter::Convert(System::SharedPtr<Object> value, const TypeInfo &type)=0
ParameterType描述
valueSystem::SharedPtr<Object>要转换的对象。
typeconst TypeInfo&要将值转换成的 System::TypeInfo

ReturnValue

转换后的值。

备注

将值转换为给定的 System::TypeInfo

另见

IFormatterConverter::Convert(System::SharedPtr<Object>, TypeCode) method

将值转换为给定的 System::TypeCode

virtual System::SharedPtr<Object> System::Runtime::Serialization::IFormatterConverter::Convert(System::SharedPtr<Object> value, TypeCode typeCode)=0
ParameterType描述
valueSystem::SharedPtr<Object>要转换的对象。
typeCodeTypeCode要将值转换成的 System::TypeCode

ReturnValue

转换后的值。

另见