From e3058597f3d0e12ed505ae6f6f3df8bd49c5bd73 Mon Sep 17 00:00:00 2001 From: Katy Coe Date: Sat, 14 Dec 2019 14:00:10 +0100 Subject: [PATCH] Output: Fix regression in truncation of interface names for explicitly implemented properties --- Il2CppInspector/Reflection/PropertyInfo.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Il2CppInspector/Reflection/PropertyInfo.cs b/Il2CppInspector/Reflection/PropertyInfo.cs index 181a806..bb86b94 100644 --- a/Il2CppInspector/Reflection/PropertyInfo.cs +++ b/Il2CppInspector/Reflection/PropertyInfo.cs @@ -33,8 +33,8 @@ namespace Il2CppInspector.Reflection { get { // Explicit interface implementation if (DeclaringType.ImplementedInterfaces - .FirstOrDefault(i => CSharpSafeName.IndexOf("." + i.CSharpTypeDeclarationName, StringComparison.Ordinal) != -1) is TypeInfo @interface) - return CSharpSafeName.Substring(CSharpSafeName.IndexOf("." + @interface.CSharpTypeDeclarationName, StringComparison.Ordinal) + 1); + .FirstOrDefault(i => CSharpSafeName.IndexOf("." + i.CSharpName, StringComparison.Ordinal) != -1) is TypeInfo @interface) + return CSharpSafeName.Substring(CSharpSafeName.IndexOf("." + @interface.CSharpName, StringComparison.Ordinal) + 1); // Regular method return Name;