Example #1
0
 public override int GetHashCode()
 {
     if (Rhs == null)
     {
         return(Lhs.GetHashCode());
     }
     return(Lhs.GetHashCode() ^ Rhs.GetHashCode());
 }
Example #2
0
    public override int GetHashCode()
    {
        const int PRIME    = 37;
        int       hashCode = base.GetHashCode();

        hashCode = PRIME * hashCode + (Lhs != null ? Lhs.GetHashCode() : 0);
        hashCode = PRIME * hashCode + (Rhs != null ? Rhs.GetHashCode() : 0);

        return(hashCode);
    }
Example #3
0
        public override int GetHashCode()
        {
            int hashCode = 0;

            hashCode ^= Lhs.GetHashCode();
            hashCode ^= Dpos;
            foreach (string s in Rhs)
            {
                hashCode ^= s.GetHashCode();
            }

            return(hashCode);
        }
Example #4
0
 public override int GetHashCode()
 {
     return(Lhs.GetHashCode() ^ Rhs.GetHashCode());
 }