Output: Prepend fields, events, properties and parameter names using reserved C# keywords with @

This commit is contained in:
Katy Coe
2019-12-12 10:18:55 +01:00
parent f10d52bdd2
commit f60047a55a
6 changed files with 53 additions and 5 deletions

View File

@@ -30,7 +30,7 @@ namespace Il2CppInspector.Reflection {
public string CSharpName =>
// Explicit interface implementation
Name.IndexOf('.') != -1? string.Join('.', Name.Split('.')[^2..])
CSharpSafeName.IndexOf('.') != -1? string.Join('.', CSharpSafeName.Split('.')[^2..])
// Regular method
: Name;