System::ObjectExt::ObjectToUnknown method

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)
ParameterDescription
TType to convert Object to.
ParameterTypeDescription
objSmartPtr<Object>Object to convert.

ReturnValue

Either unboxed value or converted pointer.

See Also

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)
ParameterDescription
TType to convert Object to.
ParameterTypeDescription
objSmartPtr<Object>Object to convert.

ReturnValue

Either unboxed value or converted pointer.

See Also