Model: Generate ConstructorInfo for generic class constructors from MethodSpecs

This commit is contained in:
Katy Coe
2020-02-02 05:17:47 +01:00
parent 63fb345bb1
commit 7b1d46644d
2 changed files with 10 additions and 3 deletions

View File

@@ -20,6 +20,8 @@ namespace Il2CppInspector.Reflection
public ConstructorInfo(Il2CppInspector pkg, int methodIndex, TypeInfo declaringType) : base(pkg, methodIndex, declaringType) { }
public ConstructorInfo(Il2CppModel model, Il2CppMethodSpec spec, TypeInfo declaringType) : base(model, spec, declaringType) { }
public override string ToString() => DeclaringType.Name + GetFullTypeParametersString()
+ "(" + string.Join(", ", DeclaredParameters.Select(x => x.ParameterType.Name)) + ")";