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

csharp-netcore.modelEnum.mustache Maven / Gradle / Ivy

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

        {{/enumVars}}
        {{/allowableValues}}
    }{{! NOTE: This model's enumVars is modified to look like CodegenProperty}}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy