public TypeDef(XmlNode node) : base(node) { // to resolve SymbolBank bank = SymbolBank.Instance; // find binding foreach (XmlNode son in node.ChildNodes) { if (son.Name.Equals("binding")) { foreach (XmlNode bindingSon in son.ChildNodes) { if (bindingSon.Name.Equals("member")) { XmlAttributeCollection attrs = bindingSon.Attributes; string memberTypeName = attrs["type"].Value; string memberName = attrs["name"].Value; if (memberTypeName != null) { TypeDef memberType = bank.LookupType(memberTypeName); BindingMember member = new BindingMember(memberName, null); } } } // get binding type mBindingType = son.Attributes["type"].Value; } } }
public PropertyDef(XmlNode node) : base(node) { SymbolBank bank = SymbolBank.Instance; // just the attribute XmlAttribute attr = node.Attributes["xml_io"]; if (attr != null) { if ("attribute".Equals(attr.Value, StringComparison.InvariantCultureIgnoreCase)) { mIsAttribute = true; } } attr = node.Attributes["type"]; if (attr != null) { Type = bank.LookupType(attr.Value); } attr = node.Attributes["Type"]; if (attr != null) { Type = bank.LookupType(attr.Value); } foreach (XmlNode son in node.ChildNodes) { if (son.Name.Equals("EnumDef")) { mEnum = new EnumDef(son); // set type to enu } } }