You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 17, 2023. It is now read-only.
I can achieve that in avrogen.exe by adding @ before symbol name in CodeGen.cs: (line 309)
foreach (string symbol in enumschema.Symbols)
{
var alwaysAllowedSymbol = symbol;
if (CodeGenUtil.Instance.ReservedKeywords.Contains(symbol))
alwaysAllowedSymbol = '@' + symbol;
CodeMemberField field = new CodeMemberField(typeof(int), alwaysAllowedSymbol);
ctd.Members.Add(field);
}
Can we add it to official source code? Thanks. If not, could you provide me with explanation (maybe I could figure it out).