Esempio n. 1
0
        /// <inheritdoc />
        public override int GetHashCode()
        {
            var hashCode = 161077207;

            hashCode = hashCode * -1521134295 + IsPhased.GetHashCode();
            hashCode = hashCode * -1521134295 + HashCodeUtils.GenerateForEnumerables(GenotypeIndices, IsPhased);
            return(hashCode);
        }
Esempio n. 2
0
 /// <inheritdoc />
 public bool Equals([NotNull] IGenotypeInfo other)
 => IsPhased.Equals(other.IsPhased) &&
 (IsPhased
            ? GenotypeIndices.SequenceEqual(other.GenotypeIndices)
            : GenotypeIndices.IsScrambledEquals(other.GenotypeIndices));