Model: TypeInfo.GetMethods() returned incorrect data

This commit is contained in:
Katy Coe
2019-11-28 03:49:09 +01:00
parent 8a837a3434
commit f77a9e5289

View File

@@ -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() {