Example #1
0
 public override int GetHashCode()
 {
     if (ChildFilterDescriptors == null)
     {
         return(LogicalOperator.GetHashCode());
     }
     return(LogicalOperator.GetHashCode() ^ ChildFilterDescriptors.Count);
 }
Example #2
0
        /// <summary>
        /// Returns the hash code for this instance.
        /// </summary>
        /// <returns>A 32-bit signed integer hash code.</returns>
        public override int GetHashCode()
        {
            int hashCode = logicalOperator.GetHashCode();

            foreach (object o in members)
            {
                hashCode ^= o.GetHashCode();
            }

            return(hashCode);
        }