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

csharp.model.mustache Maven / Gradle / Ivy

There is a newer version: 2.0.14
Show newest version
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;

{{#models}}
{{#model}}
namespace {{package}} {
  public class {{classname}} {
    {{#vars}}

    {{#description}}/* {{{description}}} */
    {{/description}}
    public {{{datatype}}} {{name}} { get; set; }

    {{/vars}}

    public override string ToString()  {
      var sb = new StringBuilder();
      sb.Append("class {{classname}} {\n");
      {{#vars}}
      sb.Append("  {{name}}: ").Append({{name}}).Append("\n");
      {{/vars}}
      sb.Append("}\n");
      return sb.ToString();
    }
  }
  {{/model}}
  {{/models}}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy