コード例 #1
0
        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);
        }
コード例 #2
0
 public InterfaceGenerator AddProperty(InterfacePropertyGenerator generator)
 {
     properties.Add(generator);
     return(this);
 }