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
参数类型描述
System::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
参数类型描述
System::SharedPtr<Object>待转换的对象。
typeCodeTypeCode要将值转换为的 System::TypeCode

ReturnValue

已转换的值。

另见