Output: Prepend fields, events, properties and parameter names using reserved C# keywords with @
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user