Beispiel #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = RsId.GetHashCode();
         hashCode = (hashCode * 397) ^ (ReferenceAllele?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (AlternateAllele?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
Beispiel #2
0
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = Start.GetHashCode() ^ Chromosome.GetHashCode();
                hashCode = (hashCode * 397) ^ (AlternateAllele?.GetHashCode() ?? 0);

                return(hashCode);
            }
        }
Beispiel #3
0
        public override int GetHashCode()
        {
            var hashCode = Start.GetHashCode() ^ ReferenceName.GetHashCode();

            hashCode = (hashCode * 397) ^ End.GetHashCode();
            hashCode = (hashCode * 397) ^ VariantType.GetHashCode();
            hashCode = (hashCode * 397) ^ Source.GetHashCode();
            hashCode = (hashCode * 397) ^ AlternateAllele.GetHashCode();

            return(hashCode);
        }
Beispiel #4
0
        public override int GetHashCode()
        {
            // ReSharper disable NonReadonlyMemberInGetHashCode
            var hashCode = Start.GetHashCode() ^ Chromosome.GetHashCode();

            hashCode = (hashCode * 397) ^ (AlternateAllele?.GetHashCode() ?? 0);
            hashCode = (hashCode * 397) ^ (AnnotationType?.GetHashCode() ?? 0);
            // ReSharper restore NonReadonlyMemberInGetHashCode

            return(hashCode);
        }
Beispiel #5
0
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = Chromosome?.GetHashCode() ?? 0;
                hashCode = (hashCode * 397) ^ Start;
                hashCode = (hashCode * 397) ^ (Id?.GetHashCode() ?? 0);
                hashCode = (hashCode * 397) ^ (ReferenceAllele?.GetHashCode() ?? 0);
                hashCode = (hashCode * 397) ^ (AlternateAllele?.GetHashCode() ?? 0);
                hashCode = (hashCode * 397) ^ (Gene?.GetHashCode() ?? 0);

                return(hashCode);
            }
        }
Beispiel #6
0
        public override int GetHashCode()
        {
            // ReSharper disable NonReadonlyMemberInGetHashCode
            var hashCode = Start.GetHashCode();

            if (Chromosome != null)
            {
                hashCode ^= Chromosome.GetHashCode();
            }
            if (Id != null)
            {
                hashCode ^= Id.GetHashCode();
            }
            if (AlternateAllele != null)
            {
                hashCode ^= AlternateAllele.GetHashCode();
            }
            if (ReferenceAllele != null)
            {
                hashCode ^= ReferenceAllele.GetHashCode();
            }
            // ReSharper restore NonReadonlyMemberInGetHashCode
            return(hashCode);
        }