Пример #1
0
        public Equation(XmlNode fieldNode, XmlNode operatorNode, XmlNode valueNode, RuleSetMetaDataDefinition ruleSetMetaDataDefinition)
        {
            _ruleSetMetaDataDefinition = ruleSetMetaDataDefinition;

            FieldProperty    = new EquationField(fieldNode, _ruleSetMetaDataDefinition);
            OperatorProperty = new EquationOperator(operatorNode, _ruleSetMetaDataDefinition);
            ValueProperty    = new EquationValue(valueNode);
        }
Пример #2
0
        public Equation(XmlNode fieldNode, RuleSetMetaDataDefinition ruleSetMetaDataDefinition)
        {
            _ruleSetMetaDataDefinition = ruleSetMetaDataDefinition;

            FieldProperty = new EquationField(fieldNode, _ruleSetMetaDataDefinition);

            XmlNode equationOperatorNode = fieldNode.NextSibling;

            OperatorProperty = new EquationOperator(equationOperatorNode, _ruleSetMetaDataDefinition);

            XmlNode valueNode = equationOperatorNode.NextSibling;

            ValueProperty = new EquationValue(valueNode);
        }