public override int GetHashCode() { unchecked { var hashCode = Id?.GetHashCode() ?? 0; hashCode = (hashCode * 397) ^ (Chromosome?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ Start.GetHashCode(); hashCode = (hashCode * 397) ^ End.GetHashCode(); hashCode = (hashCode * 397) ^ VariantType.GetHashCode(); hashCode = (hashCode * 397) ^ SampleSize.GetHashCode(); hashCode = (hashCode * 397) ^ ObservedGains.GetHashCode(); hashCode = (hashCode * 397) ^ ObservedLosses.GetHashCode(); hashCode = (hashCode * 397) ^ (VariantFreqAll?.GetHashCode() ?? 0); return(hashCode); } }
public override int GetHashCode() { int hash = 1; if (Id.Length != 0) { hash ^= Id.GetHashCode(); } if (Algorithm != 0) { hash ^= Algorithm.GetHashCode(); } if (ErrorTolerance != 0D) { hash ^= ErrorTolerance.GetHashCode(); } if (File.Length != 0) { hash ^= File.GetHashCode(); } if (Support != 0D) { hash ^= Support.GetHashCode(); } if (SampleSize != 0) { hash ^= SampleSize.GetHashCode(); } if (K != 0) { hash ^= K.GetHashCode(); } if (UseTopK != false) { hash ^= UseTopK.GetHashCode(); } if (DBSize != 0) { hash ^= DBSize.GetHashCode(); } if (ShutdownServer != false) { hash ^= ShutdownServer.GetHashCode(); } return(hash); }