Esempio n. 1
0
        public override int GetHashCode()
        {
            var result = 0;

            if (null != Left)
            {
                result ^= Left.GetHashCode();
            }
            result ^= CollectionUtility.GetHashCode(Right);
            return(result);
        }
Esempio n. 2
0
 public bool Equals(CfgRule rhs)
 {
     if (ReferenceEquals(rhs, this))
     {
         return(true);
     }
     if (ReferenceEquals(rhs, null))
     {
         return(false);
     }
     return(Left == rhs.Left && CollectionUtility.Equals(Right, rhs.Right));
 }
Esempio n. 3
0
 public void CopyTo(T[] array, int index)
 {
     CollectionUtility.CopyTo(_inner, array, index);
 }