Browse Source

Added `CSharpSources.IsReservedKeyword` static helper method.

pull/1177/head
Joao Matos 7 years ago committed by João Matos
parent
commit
863566ef43
  1. 2
      src/Generator/Generators/CSharp/CSharpSources.cs

2
src/Generator/Generators/CSharp/CSharpSources.cs

@ -59,6 +59,8 @@ namespace CppSharp.Generators.CSharp @@ -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))

Loading…
Cancel
Save