System::ObjectExt::UnboxToNullable Methode

ObjectExt::UnboxToNullable method

Entboxt Objekt zu nullable Typ.

template<class T> static Nullable<T> System::ObjectExt::UnboxToNullable(const SmartPtr<Object> &obj, bool safe=true)
ParameterBeschreibung
TZieltyp.
ParameterTypBeschreibung
objconst SmartPtr<Object>&Object zum Entpacken.
sicherboolWenn true, gibt bei einem Fehler nullptr zurück, andernfalls wird InvalidCastException ausgelöst.

ReturnValue

Entpackter nullable Wert (kann null sein).

Siehe auch