From 59a1e51abd423a4663b73b7ee5bba0a934ec33c5 Mon Sep 17 00:00:00 2001 From: ds5678 <49847914+ds5678@users.noreply.github.com> Date: Tue, 24 Dec 2024 04:46:14 -0800 Subject: [PATCH] Fix lookup namespace for MethodInfo --- Cpp2IL.Core/Utils/AsmResolver/TypeDefinitionsAsmResolver.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cpp2IL.Core/Utils/AsmResolver/TypeDefinitionsAsmResolver.cs b/Cpp2IL.Core/Utils/AsmResolver/TypeDefinitionsAsmResolver.cs index b19b04fa..8509933a 100644 --- a/Cpp2IL.Core/Utils/AsmResolver/TypeDefinitionsAsmResolver.cs +++ b/Cpp2IL.Core/Utils/AsmResolver/TypeDefinitionsAsmResolver.cs @@ -111,7 +111,7 @@ public static void CacheNeededTypeDefinitions() Type = AsmResolverUtils.TryLookupTypeDefKnownNotGeneric("System.Type")!; TypedReference = AsmResolverUtils.TryLookupTypeDefKnownNotGeneric("System.TypedReference")!; IConvertible = AsmResolverUtils.TryLookupTypeDefKnownNotGeneric("System.IConvertible")!; - MethodInfo = AsmResolverUtils.TryLookupTypeDefKnownNotGeneric("System.MethodInfo")!; + MethodInfo = AsmResolverUtils.TryLookupTypeDefKnownNotGeneric("System.Reflection.MethodInfo")!; _primitiveTypeMappings = new Dictionary