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

handlebars.aspnetcore.enumClass.mustache Maven / Gradle / Ivy

There is a newer version: 1.0.54
Show newest version

        /// 
        /// {{^description}}Gets or Sets {{{name}}}{{/description}}{{#description}}{{{description}}}{{/description}}
        /// 
        {{#description}}
        /// {{{description}}}
        {{/description}}
        {{#allowableValues}}{{#enumVars}}{{#@first}}{{#isString}}[JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]{{/isString}}{{/@first}}{{/enumVars}}{{/allowableValues}}
        public enum {{#datatypeWithEnum}}{{.}}{{/datatypeWithEnum}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}}
        {
            {{#allowableValues}}{{#enumVars}}
            /// 
            /// Enum {{name}} for {{#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}}{{/isString}}{{^@last}},
            {{/@last}}{{/enumVars}}{{/allowableValues}}
        }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy