Added json enum to csharp with decoration

using newtonsoft decoration
This commit is contained in:
Justus Thorvaldsson
2015-11-20 14:33:22 +01:00
parent ff1dd034a8
commit f4773d3333
28 changed files with 440 additions and 35 deletions

View File

@@ -0,0 +1,6 @@
public enum {{name}} {
{{#allowableValues}}{{#enumVars}}
[EnumMember("{{jsonname}}")]
{{name}}{{^-last}},
{{/-last}}{{#-last}}{{/-last}}{{/enumVars}}{{/allowableValues}}
}