| 799 | } |
| 800 | |
| 801 | MClass* Scripting::FindClass(const StringAnsiView& fullname) |
| 802 | { |
| 803 | if (fullname.IsEmpty()) |
| 804 | return nullptr; |
| 805 | PROFILE_CPU(); |
| 806 | auto& modules = BinaryModule::GetModules(); |
| 807 | for (auto module : modules) |
| 808 | { |
| 809 | auto managedModule = dynamic_cast<ManagedBinaryModule*>(module); |
| 810 | if (managedModule && managedModule->Assembly->IsLoaded()) |
| 811 | { |
| 812 | MClass* result = managedModule->Assembly->GetClass(fullname); |
| 813 | if (result != nullptr) |
| 814 | return result; |
| 815 | } |
| 816 | } |
| 817 | return nullptr; |
| 818 | } |
| 819 | |
| 820 | ScriptingTypeHandle Scripting::FindScriptingType(const StringAnsiView& fullname) |
| 821 | { |