Model: Add TypeInfo.ToString()

This commit is contained in:
Katy Coe
2019-11-02 17:55:56 +01:00
parent 5f8aced688
commit a62b8bf800

View File

@@ -411,5 +411,8 @@ namespace Il2CppInspector.Reflection {
public TypeInfo(MethodBase declaringMethod, Il2CppGenericParameter param) : this(declaringMethod.DeclaringType, param) {
DeclaringMethod = declaringMethod;
}
// Display name of object
public override string ToString() => FullName?.Substring(FullName.LastIndexOf(".") + 1) ?? Name;
}
}