Exemple #1
0
        public override bool Equals(object other)
        {
            if (null == ConditionExpression || null == TrueExpression || null == FalseExpression)
            {
                return(false);
            }

            var otherNode = other as InlineConditionalNode;

            if (null == otherNode)
            {
                return(false);
            }

            return(ConditionExpression.Equals(otherNode.ConditionExpression) &&
                   TrueExpression.Equals(otherNode.TrueExpression) &&
                   FalseExpression.Equals(otherNode.FalseExpression));
        }