Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 public StructGenerator AddStruct(StructGenerator generator)
 {
     structs.Add(generator);
     return(this);
 }
Esempio n. 4
0
 public NamespaceGenerator AddStruct(StructGenerator @struct)
 {
     structs.Add(@struct);
     return(this);
 }