Beispiel #1
0
        public DefMember(XmlElement elem)
        {
            this._elem          = elem;
            this.ProtectionType = DefType.GetProtectionEnum(elem.GetAttribute("protection"));
            this.PassedByType   = (PassedByType)Enum.Parse(typeof(PassedByType), elem.GetAttribute("passedBy"), true);

            foreach (XmlElement child in elem.ChildNodes)
            {
                switch (child.Name)
                {
                case "name":
                    _name = child.InnerText;
                    break;

                case "type":
                    this.TypeName        = child.InnerText;
                    this._container      = child.GetAttribute("container");
                    this._containerKey   = child.GetAttribute("containerKey");
                    this._containerValue = child.GetAttribute("containerValue");
                    break;

                case "definition":
                    this.Definition = child.InnerText;
                    break;

                default:
                    InterpretChildElement(child);
                    break;
                }
            }
        }