{{~ name = x.name namespace_with_top_module = x.namespace_with_top_module comment = x.comment items = x.items ~}} namespace {{namespace_with_top_module}} { {{~if comment != '' ~}} /// /// {{comment | html.escape}} /// {{~end~}} {{~if x.is_flags~}} [System.Flags] {{~end~}} public enum {{name}} { {{~ for item in items ~}} {{~if item.comment != '' ~}} /// /// {{item.escape_comment}} /// {{~end~}} {{item.name}} = {{item.value}}, {{~end~}} } }