From f77a9e528968dc0384a25ed0026121281b2e1e83 Mon Sep 17 00:00:00 2001 From: Katy Coe Date: Thu, 28 Nov 2019 03:49:09 +0100 Subject: [PATCH] Model: TypeInfo.GetMethods() returned incorrect data --- Il2CppInspector/Reflection/TypeInfo.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Il2CppInspector/Reflection/TypeInfo.cs b/Il2CppInspector/Reflection/TypeInfo.cs index 2bca9b7..e9b5817 100644 --- a/Il2CppInspector/Reflection/TypeInfo.cs +++ b/Il2CppInspector/Reflection/TypeInfo.cs @@ -114,7 +114,7 @@ namespace Il2CppInspector.Reflection { public MethodInfo GetMethod(string name) => DeclaredMethods.FirstOrDefault(m => m.Name == name); // Get all methods with same name (overloads) - public MethodInfo[] GetMethods(string name) => DeclaredMethods.Where(m => m.Name == Name).ToArray(); + public MethodInfo[] GetMethods(string name) => DeclaredMethods.Where(m => m.Name == name).ToArray(); // Get methods including inherited methods public MethodInfo[] GetAllMethods() {