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)
| Parameter | Beschrijving |
|---|---|
| T | Doeltype. |
| Parameter | Type | Beschrijving |
|---|---|---|
| obj | const SmartPtr<Object>& | Object om te unboxen. |
| veilig | bool | Als true, retourneer nullptr bij falen, anders gooi InvalidCastException. |
ReturnValue
Deboxte nullable waarde (kan null zijn).