Convert()

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

RTTI information.

virtual System::SharedPtr<Object> System::Runtime::Serialization::IFormatterConverter::Convert(System::SharedPtr<Object> value, const TypeInfo &type)=0

Arguments

ParameterTypeDescription
valueSystem::SharedPtr<Object>The object to be converted.
typeconst TypeInfo&The System::TypeInfo into which value is to be converted.

Return Value

The converted value.

Remarks

Converts a value to the given System::TypeInfo.

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

Converts a value to the given System::TypeCode.

virtual System::SharedPtr<Object> System::Runtime::Serialization::IFormatterConverter::Convert(System::SharedPtr<Object> value, TypeCode typeCode)=0

Arguments

ParameterTypeDescription
valueSystem::SharedPtr<Object>The object to be converted.
typeCodeTypeCodeThe System::TypeCode into which value is to be converted.

Return Value

The converted value.

See Also