mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-30 01:02:01 +00:00
[C#] Handle keywords (#6775)
* Handle keywords in C# C# should handle keywords similarly to other languages by appending an underscore after the keyword. * Fix clang-format for idl_gen_csharp.cpp * Fix spacing clang-format issue
This commit is contained in:
10
tests/keyword_test/public.cs
Normal file
10
tests/keyword_test/public.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
// <auto-generated>
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
// </auto-generated>
|
||||
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
|
||||
public enum public_ : int
|
||||
{
|
||||
NONE = 0,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user