예제 #1
0
        public override int GetHashCode()
        {
            var hashCode = 2043579837;

            if (HasNoFill())
            {
                return(hashCode);
            }

            hashCode = hashCode * -1521134295 + PatternType.GetHashCode();
            hashCode = hashCode * -1521134295 + BackgroundColor.GetHashCode();

            if (HasNoForeground())
            {
                return(hashCode);
            }

            hashCode = hashCode * -1521134295 + PatternColor.GetHashCode();

            return(hashCode);
        }
예제 #2
0
 public override int GetHashCode()
 {
     return(BackgroundColor.GetHashCode()
            ^ (Int32)PatternType
            ^ PatternColor.GetHashCode());
 }