Output: Handle indexers correctly

This commit is contained in:
Katy Coe
2019-11-09 23:46:07 +01:00
parent d1cfa46775
commit 7f683fc629
2 changed files with 11 additions and 3 deletions

View File

@@ -26,7 +26,7 @@ namespace Il2CppInspector.Reflection {
public override string Name { get; protected set; }
public TypeInfo PropertyType => GetMethod?.ReturnType ?? SetMethod.DeclaredParameters[0].ParameterType;
public TypeInfo PropertyType => GetMethod?.ReturnType ?? SetMethod.DeclaredParameters[^1].ParameterType;
public override MemberTypes MemberType => MemberTypes.Property;