public static string AsString(this StructModifier modifier) { if (modifier == StructModifier.None) { return(string.Empty); } return(EnumToLower(modifier)); }
public static StructGenerator Struct(AccessModifier nestedScope, StructModifier modifier, string name) { var @struct = new StructGenerator(); @struct.nestedScope = nestedScope; @struct.modifier = modifier; @struct.name = name; @struct.isNested = true; return(@struct); }
public static StructGenerator Struct(RootAccessModifier scope, StructModifier modifier, string name) { var @struct = new StructGenerator(); @struct.scope = scope; @struct.modifier = modifier; @struct.name = name; @struct.isNested = false; return(@struct); }