All Downloads are FREE. Search and download functionalities are using the official Maven repository.

handlebars.csharp.modelInnerEnum.mustache Maven / Gradle / Ivy

There is a newer version: 1.0.54
Show newest version
        {{^isContainer}}
        /// 
        /// {{^description}}Defines {{{name}}}{{/description}}{{#description}}{{description}}{{/description}}
        /// 
        {{#description}}
        /// {{description}}
        {{/description}}
        {{#isString}}
        [JsonConverter(typeof(StringEnumConverter))]
        {{/isString}}
        {{>visibility}} enum {{#datatypeWithEnum}}{{.}}{{/datatypeWithEnum}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}}{{#vendorExtensions.x-enum-byte}}: byte{{/vendorExtensions.x-enum-byte}}
        {
            {{#allowableValues}}{{#enumVars}}
            /// 
            /// Enum {{name}} for value: {{#value}}{{{value}}}{{/value}}{{^value}}null{{/value}}
            /// 
            {{#isString}}[EnumMember(Value = {{#value}}"{{{value}}}"{{/value}}{{^value}}null{{/value}})]{{/isString}}
            {{name}}{{^isString}} = {{#value}}{{{value}}}{{/value}}{{^value}}null{{/value}}{{/isString}}{{#isString}} = {{@index_1}}{{/isString}}{{^@last}},
            {{/@last}}{{/enumVars}}{{/allowableValues}}
        }
        {{/isContainer}}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy