public override int GetHashCode() { unchecked { int hash = 13; hash = (hash * 7) + BitsPerPixel.GetHashCode(); hash = (hash * 7) + Masks.GetHashCode(); return(hash); } }
public override int GetHashCode() { var result = 17; result = result * 13 + BitsPerPixel.GetHashCode(); result = result * 13 + RBitMask.GetHashCode(); result = result * 13 + GBitMask.GetHashCode(); result = result * 13 + BBitMask.GetHashCode(); result = result * 13 + ABitMask.GetHashCode(); result = result * 13 + FourCc.GetHashCode(); return(result); }
public override int GetHashCode() { int hash = 1; if (BitsPerPixel != 0) { hash ^= BitsPerPixel.GetHashCode(); } if (size_ != null) { hash ^= Size.GetHashCode(); } if (Data.Length != 0) { hash ^= Data.GetHashCode(); } return(hash); }