Remove ResolveGenericArguments(int) entirely

It's not really needed anymore, and it is clearer without that method.
This commit is contained in:
Robert Xiao
2020-04-10 04:22:21 -07:00
committed by Katy
parent f0124d9290
commit 71bf353ae0
2 changed files with 1 additions and 2 deletions

View File

@@ -153,7 +153,7 @@ namespace Il2CppInspector.Reflection
Attributes = methodDef.Attributes;
IsGenericMethod = true;
genericArguments = model.ResolveGenericArguments(spec.methodIndexIndex);
genericArguments = model.ResolveGenericArguments(model.Package.GenericInstances[spec.methodIndexIndex]);
// Substitute matching generic type parameters with concrete type arguments
foreach (var p in methodDef.DeclaredParameters) {