Convert()

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

Converts a value to the given System::TypeInfo.

System::SharedPtr<Object> System::Runtime::Serialization::FormatterConverter::Convert(System::SharedPtr<Object> value, const TypeInfo &type) override

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.

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

Converts a value to the given System::TypeCode.

System::SharedPtr<Object> System::Runtime::Serialization::FormatterConverter::Convert(System::SharedPtr<Object> value, TypeCode typeCode) override

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