public static InterfacePropertyGenerator Property(string name, Type type, bool get, bool set) { var interfaceProp = new InterfacePropertyGenerator(); interfaceProp.name = name; interfaceProp.type = type; interfaceProp.get = (get ? "get".ConstructHighlight() + "; " : string.Empty); interfaceProp.set = (set ? "set".ConstructHighlight() + "; " : string.Empty); return(interfaceProp); }
public InterfaceGenerator AddProperty(InterfacePropertyGenerator generator) { properties.Add(generator); return(this); }