| 1425 | } |
| 1426 | |
| 1427 | void ManagedBinaryModule::GetFieldSignature(void* field, ScriptingTypeFieldSignature& fieldSignature) |
| 1428 | { |
| 1429 | #if USE_CSHARP |
| 1430 | if ((uintptr)field & ManagedBinaryModuleFieldIsPropertyBit) |
| 1431 | { |
| 1432 | const auto mProperty = (MProperty*)GetManagedBinaryModulePropertyHandle(field); |
| 1433 | fieldSignature.Name = mProperty->GetName(); |
| 1434 | fieldSignature.ValueType = MoveTemp(MUtils::UnboxVariantType(mProperty->GetType())); |
| 1435 | fieldSignature.IsStatic = mProperty->IsStatic(); |
| 1436 | } |
| 1437 | else |
| 1438 | { |
| 1439 | const auto mField = (MField*)field; |
| 1440 | fieldSignature.Name = mField->GetName(); |
| 1441 | fieldSignature.ValueType = MoveTemp(MUtils::UnboxVariantType(mField->GetType())); |
| 1442 | fieldSignature.IsStatic = mField->IsStatic(); |
| 1443 | } |
| 1444 | #endif |
| 1445 | } |
| 1446 | |
| 1447 | bool ManagedBinaryModule::GetFieldValue(void* field, const Variant& instance, Variant& result) |
| 1448 | { |
no test coverage detected