ObjectToUnknown()

ObjectExt::ObjectToUnknown(SmartPtr<Object>) method

Converts Object to unknown type, handling both smart pointer type and bpxed value situations.

template<typename T> static std::enable_if<IsSmartPtr<T>::value, T>::type System::ObjectExt::ObjectToUnknown(SmartPtr<Object> obj)

Template parameters

ParameterDescription
TType to convert Object to.

Arguments

ParameterTypeDescription
objSmartPtr<Object>Object to convert.

Return Value

Either unboxed value or converted pointer.

ObjectExt::ObjectToUnknown(SmartPtr<Object>) method

Converts Object to unknown type, handling both smart pointer type and boxed value situations.

template<typename T> static std::enable_if<!IsSmartPtr<T>::value, T>::type System::ObjectExt::ObjectToUnknown(SmartPtr<Object> obj)

Template parameters

ParameterDescription
TType to convert Object to.

Arguments

ParameterTypeDescription
objSmartPtr<Object>Object to convert.

Return Value

Either unboxed value or converted pointer.

See Also