public override int GetHashCode()
    {
        int hash = 1;

        if (SocialSecurityNumber.Length != 0)
        {
            hash ^= SocialSecurityNumber.GetHashCode();
        }
        if (Year != 0)
        {
            hash ^= Year.GetHashCode();
        }
        if (Quarter != 0)
        {
            hash ^= Quarter.GetHashCode();
        }
        if (Amount != 0D)
        {
            hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Amount);
        }
        if (_unknownFields != null)
        {
            hash ^= _unknownFields.GetHashCode();
        }
        return(hash);
    }
 public override int GetHashCode()
 {
     unchecked     // Overflow is fine, just wrap
     {
         // The two hard-coded digits below should be primes,
         // uniquely chosen per type (so no two types you define
         // use the same primes).
         int hash = (int)2166136261;
         // Suitable nullity checks etc, of course :)
         hash = hash * 16777619 ^ Quarter.GetHashCode();
         hash = hash * 16777619 ^ Year.GetHashCode();
         return(hash);
     }
 }
示例#3
0
    public override int GetHashCode()
    {
        var hashCode = 1173473123;

        hashCode = hashCode * -1521134295 + min.GetHashCode();
        hashCode = hashCode * -1521134295 + Min.GetHashCode();
        hashCode = hashCode * -1521134295 + max.GetHashCode();
        hashCode = hashCode * -1521134295 + Max.GetHashCode();
        hashCode = hashCode * -1521134295 + current.GetHashCode();
        hashCode = hashCode * -1521134295 + Current.GetHashCode();
        hashCode = hashCode * -1521134295 + IsMax.GetHashCode();
        hashCode = hashCode * -1521134295 + IsMin.GetHashCode();
        hashCode = hashCode * -1521134295 + Rest.GetHashCode();
        hashCode = hashCode * -1521134295 + Quarter.GetHashCode();
        hashCode = hashCode * -1521134295 + Half.GetHashCode();
        hashCode = hashCode * -1521134295 + Three_Fourths.GetHashCode();
        hashCode = hashCode * -1521134295 + One_Third.GetHashCode();
        return(hashCode);
    }
 public override int GetHashCode()
 {
     return(SchemeId.GetHashCode() ^ Year.GetHashCode() ^ Quarter.GetHashCode());
 }