Esempio n. 1
0
        public ulong GetHash()
        {
            ulong hashCode = 0uL;

            unchecked
            {
                if (OrOrExpression != null)
                {
                    hashCode += 1000000007 * OrOrExpression.GetHash();
                }
                if (TrueCaseExpression != null)
                {
                    hashCode += 1000000009 * TrueCaseExpression.GetHash();
                }
                if (FalseCaseExpression != null)
                {
                    hashCode += 1000000021 * FalseCaseExpression.GetHash();
                }
            }
            return(hashCode);
        }
Esempio n. 2
0
 public override string ToString()
 {
     return((OrOrExpression != null ? OrOrExpression.ToString() : "") + "?" +
            (TrueCaseExpression != null ? TrueCaseExpression.ToString() : "") + ':' +
            (FalseCaseExpression != null ? FalseCaseExpression.ToString() : ""));
 }