GeometryGym.Ifc.IfcBooleanResult.ParseXml C# (CSharp) Méthode

ParseXml() private méthode

private ParseXml ( XmlElement xml ) : void
xml XmlElement
Résultat void
        internal override void ParseXml(XmlElement xml)
        {
            base.ParseXml(xml);
            if (xml.HasAttribute("Operator"))
                Enum.TryParse<IfcBooleanOperator>(xml.Attributes["Operator"].Value, true, out mOperator);
            foreach (XmlNode child in xml.ChildNodes)
            {
                string name = child.Name;
                if (string.Compare(name, "FirstOperand") == 0)
                    FirstOperand = mDatabase.ParseXml<IfcBooleanOperand>(child as XmlElement);
                else if (string.Compare(name, "SecondOperand") == 0)
                    SecondOperand = mDatabase.ParseXml<IfcBooleanOperand>(child as XmlElement);
            }
        }