| 158 | } |
| 159 | |
| 160 | MTypeObject* MUtils::BoxScriptingTypeHandle(const ScriptingTypeHandle& value) |
| 161 | { |
| 162 | MTypeObject* result = nullptr; |
| 163 | if (value) |
| 164 | { |
| 165 | MType* mType = value.GetType().ManagedClass->GetType(); |
| 166 | result = INTERNAL_TYPE_GET_OBJECT(mType); |
| 167 | } |
| 168 | return result; |
| 169 | } |
| 170 | |
| 171 | VariantType MUtils::UnboxVariantType(MType* type) |
| 172 | { |