Exemple #1
0
        /// <inheritdoc />
        public override XmlElement BuildXmlElement(XmlDocument doc, string name)
        {
            XmlElement element = XmlHelper.CreateElement(doc, name);

            element.AppendChild(Conditions.BuildXmlElement(doc, ClassHelper.GetMemberName(() => Conditions)));
            element.AppendChild(Actions.BuildXmlElement(doc, ClassHelper.GetMemberName(() => Actions)));
            XmlHelper.AppendTextElement(element, ClassHelper.GetMemberName(() => Title), Title);
            XmlHelper.AppendTextElement(element, ClassHelper.GetMemberName(() => Active), Active);
            XmlHelper.AppendTextElement(element, ClassHelper.GetMemberName(() => RuleID), RuleID);

            return(element);
        }