From a62b8bf800fb7eedc41eeeefb229ad963a2ab276 Mon Sep 17 00:00:00 2001 From: Katy Coe Date: Sat, 2 Nov 2019 17:55:56 +0100 Subject: [PATCH] Model: Add TypeInfo.ToString() --- Il2CppInspector/Reflection/TypeInfo.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Il2CppInspector/Reflection/TypeInfo.cs b/Il2CppInspector/Reflection/TypeInfo.cs index b45184c..afbb783 100644 --- a/Il2CppInspector/Reflection/TypeInfo.cs +++ b/Il2CppInspector/Reflection/TypeInfo.cs @@ -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; } } \ No newline at end of file