public static PopulateMemberLists ( |
||
xml_cls | ||
interface_list | List |
|
constructor_list | List |
|
method_list | List |
|
property_list | List |
|
field_list | List |
|
event_list | List |
|
return | void |
public MasterClass(XMLClass cls, CompType type) : base(cls.name, type) { xml_cls = cls; interfaces = new List <CompNamed>(); constructors = new List <CompNamed>(); methods = new List <CompNamed>(); properties = new List <CompNamed>(); fields = new List <CompNamed>(); events = new List <CompNamed>(); MasterUtils.PopulateMemberLists(xml_cls, interfaces, constructors, methods, properties, fields, events); delegate_list = new List <CompNamed>(); enum_list = new List <CompNamed>(); class_list = new List <CompNamed>(); struct_list = new List <CompNamed>(); interface_list = new List <CompNamed>(); MasterUtils.PopulateTypeLists(xml_cls, class_list, enum_list, delegate_list, interface_list, struct_list); }
public MasterEnum(XMLClass cls) : base(cls.name) { xml_cls = cls; fields = new List <CompNamed>(); MasterUtils.PopulateMemberLists(xml_cls, null, null, null, null, fields, null); }
public MasterInterface(XMLClass xml_cls) : base(FormatName(xml_cls)) { this.xml_cls = xml_cls; interfaces = new List <CompNamed>(); constructors = new List <CompNamed>(); methods = new List <CompNamed>(); properties = new List <CompNamed>(); fields = new List <CompNamed>(); events = new List <CompNamed>(); MasterUtils.PopulateMemberLists(xml_cls, interfaces, constructors, methods, properties, fields, events); attributes = MasterUtils.GetAttributes(xml_cls.attributes); }
public MasterEnum(XMLClass cls) : base(cls.name) { xml_cls = cls; fields = new List <CompNamed>(); MasterUtils.PopulateMemberLists(xml_cls, null, null, null, null, fields, null); if (fields == null || fields.Count == 0) { return; } List <MasterField> masterFields = new List <MasterField> (); foreach (CompNamed f in fields) { MasterField field = f as MasterField; if (field == null) { continue; } masterFields.Add(field); } if (masterFields.Count == 0) { return; } masterFields.Sort((MasterField left, MasterField right) => { if (left == null && right == null) { return(0); } if (left == null) { return(1); } if (right == null) { return(-1); } return(String.Compare(left.GetLiteralValue(), right.GetLiteralValue(), StringComparison.Ordinal)); }); StringBuilder sb = new StringBuilder(); sb.Append("<b>Members:</b>\n"); foreach (MasterField field in masterFields) { sb.AppendFormat("\t\t<i>{0}</i> = {1}\n", field.Name, field.GetLiteralValue()); } ExtraInfo = sb.ToString(); }