Пример #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Module != 0)
            {
                hash ^= Module.GetHashCode();
            }
            if (LevelBottom != 0)
            {
                hash ^= LevelBottom.GetHashCode();
            }
            if (PlotBottom != 0)
            {
                hash ^= PlotBottom.GetHashCode();
            }
            if (Used != 0)
            {
                hash ^= Used.GetHashCode();
            }
            if (FunctionId != 0)
            {
                hash ^= FunctionId.GetHashCode();
            }
            return(hash);
        }
Пример #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Type != 0)
            {
                hash ^= Type.GetHashCode();
            }
            if (Init != 0L)
            {
                hash ^= Init.GetHashCode();
            }
            if (Max != 0L)
            {
                hash ^= Max.GetHashCode();
            }
            if (Used != 0L)
            {
                hash ^= Used.GetHashCode();
            }
            if (Commited != 0L)
            {
                hash ^= Commited.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Пример #3
0
        public override int GetHashCode()
        {
            unchecked {
                int hash = 17;
                hash = hash * 23 + Used.GetHashCode();
                hash = hash * 23 + Card.GetHashCode();

                return(hash);
            }
        }
Пример #4
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Drive != null ? Drive.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Free.GetHashCode();
         hashCode = (hashCode * 397) ^ Used.GetHashCode();
         hashCode = (hashCode * 397) ^ Total.GetHashCode();
         return(hashCode);
     }
 }
Пример #5
0
        public override int GetHashCode()
        {
            unchecked {
                int hash = 17;
                hash = hash * 23 + Amount.GetHashCode();
                hash = hash * 23 + Currency.GetHashCode();
                hash = hash * 23 + Used.GetHashCode();
                hash = hash * 23 + Multiple.GetHashCode();
                hash = hash * 23 + Title.GetHashCode();
                hash = hash * 23 + Description.GetHashCode();
                hash = hash * 23 + Charges.GetHashCode();
                hash = hash * 23 + PaymentURI.GetHashCode();

                return(hash);
            }
        }
Пример #6
0
        public override int GetHashCode()
        {
            unchecked {
                int hash = 17;
                if (Used != default(bool))
                {
                    hash = hash * 23 + Used.GetHashCode();
                }
                if (Card != default(Card))
                {
                    hash = hash * 23 + Card.GetHashCode();
                }

                return(hash);
            }
        }
Пример #7
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (FolderId.Length != 0)
            {
                hash ^= FolderId.GetHashCode();
            }
            if (createdAt_ != null)
            {
                hash ^= CreatedAt.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            hash ^= Labels.GetHashCode();
            if (addressCase_ == AddressOneofCase.ExternalIpv4Address)
            {
                hash ^= ExternalIpv4Address.GetHashCode();
            }
            if (Reserved != false)
            {
                hash ^= Reserved.GetHashCode();
            }
            if (Used != false)
            {
                hash ^= Used.GetHashCode();
            }
            hash ^= (int)addressCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Пример #8
0
        public override int GetHashCode()
        {
            unchecked {
                int hash = 17;
                if (Amount != default(long))
                {
                    hash = hash * 23 + Amount.GetHashCode();
                }
                if (Currency != default(string))
                {
                    hash = hash * 23 + Currency.GetHashCode();
                }
                if (Used != default(bool))
                {
                    hash = hash * 23 + Used.GetHashCode();
                }
                if (Multiple != default(bool))
                {
                    hash = hash * 23 + Multiple.GetHashCode();
                }
                if (Title != default(string))
                {
                    hash = hash * 23 + Title.GetHashCode();
                }
                if (Description != default(string))
                {
                    hash = hash * 23 + Description.GetHashCode();
                }
                if (Charges != default(ScopedList <Charge>))
                {
                    hash = hash * 23 + Charges.GetHashCode();
                }
                if (PaymentURI != default(string))
                {
                    hash = hash * 23 + PaymentURI.GetHashCode();
                }

                return(hash);
            }
        }
Пример #9
0
 public override int GetHashCode()
 {
     return(Used.GetHashCode() ^ Max.GetHashCode() ^ Selected.GetHashCode());
 }
Пример #10
0
 public override int GetHashCode()
 {
     return(CertificateCode.GetHashCode() ^ Sum.GetHashCode() ^ Used.GetHashCode() * 123 ^ Paid.GetHashCode() * 321 ^ Enable.GetHashCode() * 323);
 }