diff --git a/src/Generator/Generators/CSharp/CSharpSources.cs b/src/Generator/Generators/CSharp/CSharpSources.cs index d8eb1eb5..185b05e8 100644 --- a/src/Generator/Generators/CSharp/CSharpSources.cs +++ b/src/Generator/Generators/CSharp/CSharpSources.cs @@ -59,6 +59,8 @@ namespace CppSharp.Generators.CSharp "void", "partial", "yield", "where" }; + public static bool IsReservedKeyword(string id) => ReservedKeywords.Contains(id); + public override string SafeIdentifier(string id) { if (id.All(char.IsLetterOrDigit))