public MemberDescription(string name, int minOccurs, int maxOccurs, TypeDescription type) { this.Name = name; this.MinOccurs = minOccurs; this.MaxOccurs = maxOccurs; this.Type = type; }
private void GenClass(TypeDescription t, CsFile target) { Console.WriteLine ("create class " + t.Name); target.emit (1, "public class " + t.Name + " {"); foreach (MemberDescription m in t.Members) GenMember (m, target); target.emit (1, "}"); target.emit (1, ""); }