| 1487 | property = GetProperty (image, namespace_, class_, name); |
| 1488 | if (property == nullptr) |
| 1489 | return nullptr; |
| 1490 | |
| 1491 | return |
| 1492 | GetPropertyValue (property, instance); |
| 1493 | } |
| 1494 | |
| 1495 | static |
| 1496 | MonoObject* InvokeMethod (const char* namespace_, const char* class_, const char* method_, int paramsCount, void* instance, const char* image_ = "Assembly-CSharp", void** params = nullptr) |
| 1497 | { |
| 1498 | if (instance == nullptr) |
| 1499 | return nullptr; |
| 1500 | |
| 1501 | const auto |
| 1502 | image = GetImage (image_); |
| 1503 | if (image == nullptr) |
| 1504 | return nullptr; |
| 1505 | |
| 1506 | const auto |
| 1507 | method = GetClassMethod (image, namespace_, class_, method_, paramsCount); |
| 1508 | if (method == nullptr) |
| 1509 | return nullptr; |
| 1510 | |
| 1511 | AttachThread (); |
| 1512 |
no test coverage detected