System::ObjectExt::UnboxToNullable-methode

ObjectExt::UnboxToNullable method

Ontdoet object naar nullable type.

template<class T> static Nullable<T> System::ObjectExt::UnboxToNullable(const SmartPtr<Object> &obj, bool safe=true)
ParameterBeschrijving
TDoeltype.
ParameterTypeBeschrijving
objconst SmartPtr<Object>&Object om te unboxen.
veiligboolAls true, retourneer nullptr bij falen, anders gooi InvalidCastException.

ReturnValue

Deboxte nullable waarde (kan null zijn).

Zie ook