コード例 #1
0
ファイル: SubRealm.cs プロジェクト: quanliang2000/A3S
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (Uuid != null)
         {
             hashCode = hashCode * 59 + Uuid.GetHashCode();
         }
         if (Name != null)
         {
             hashCode = hashCode * 59 + Name.GetHashCode();
         }
         if (Description != null)
         {
             hashCode = hashCode * 59 + Description.GetHashCode();
         }
         if (Permissions != null)
         {
             hashCode = hashCode * 59 + Permissions.GetHashCode();
         }
         if (ApplicationDataPolicies != null)
         {
             hashCode = hashCode * 59 + ApplicationDataPolicies.GetHashCode();
         }
         return(hashCode);
     }
 }
コード例 #2
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (Uuid != null)
         {
             hashCode = hashCode * 59 + Uuid.GetHashCode();
         }
         if (_User != null)
         {
             hashCode = hashCode * 59 + _User.GetHashCode();
         }
         if (Password != null)
         {
             hashCode = hashCode * 59 + Password.GetHashCode();
         }
         if (PasswordConfirmation != null)
         {
             hashCode = hashCode * 59 + PasswordConfirmation.GetHashCode();
         }
         return(hashCode);
     }
 }
コード例 #3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Success != false)
            {
                hash ^= Success.GetHashCode();
            }
            if (Uuid.Length != 0)
            {
                hash ^= Uuid.GetHashCode();
            }
            if (DisplayName.Length != 0)
            {
                hash ^= DisplayName.GetHashCode();
            }
            if (FailureReason != global::UserManagement.LoginFailureReason.SessionId)
            {
                hash ^= FailureReason.GetHashCode();
            }
            if (FailureMessage.Length != 0)
            {
                hash ^= FailureMessage.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Uuid.Length != 0)
            {
                hash ^= Uuid.GetHashCode();
            }
            if (Username.Length != 0)
            {
                hash ^= Username.GetHashCode();
            }
            if (X != 0F)
            {
                hash ^= X.GetHashCode();
            }
            if (Y != 0F)
            {
                hash ^= Y.GetHashCode();
            }
            if (Z != 0F)
            {
                hash ^= Z.GetHashCode();
            }
            if (GameMode != 0)
            {
                hash ^= GameMode.GetHashCode();
            }
            if (WorldId != 0)
            {
                hash ^= WorldId.GetHashCode();
            }
            return(hash);
        }
コード例 #5
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (Uuid != null)
         {
             hashCode = hashCode * 59 + Uuid.GetHashCode();
         }
         if (Active != null)
         {
             hashCode = hashCode * 59 + Active.GetHashCode();
         }
         if (Name != null)
         {
             hashCode = hashCode * 59 + Name.GetHashCode();
         }
         if (Photo != null)
         {
             hashCode = hashCode * 59 + Photo.GetHashCode();
         }
         return(hashCode);
     }
 }
コード例 #6
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (Uuid != null)
         {
             hashCode = hashCode * 59 + Uuid.GetHashCode();
         }
         if (AgreementName != null)
         {
             hashCode = hashCode * 59 + AgreementName.GetHashCode();
         }
         if (Version != null)
         {
             hashCode = hashCode * 59 + Version.GetHashCode();
         }
         if (TeamIds != null)
         {
             hashCode = hashCode * 59 + TeamIds.GetHashCode();
         }
         if (AcceptedUserIds != null)
         {
             hashCode = hashCode * 59 + AcceptedUserIds.GetHashCode();
         }
         if (SubRealmId != null)
         {
             hashCode = hashCode * 59 + SubRealmId.GetHashCode();
         }
         return(hashCode);
     }
 }
コード例 #7
0
ファイル: Player.cs プロジェクト: TakenokoTech/grpc-unity
        public override int GetHashCode()
        {
            int hash = 1;

            if (Uuid.Length != 0)
            {
                hash ^= Uuid.GetHashCode();
            }
            if (position_ != null)
            {
                hash ^= Position.GetHashCode();
            }
            if (rotation_ != null)
            {
                hash ^= Rotation.GetHashCode();
            }
            if (status_ != null)
            {
                hash ^= Status.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #8
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (SessionId.Length != 0)
            {
                hash ^= SessionId.GetHashCode();
            }
            if (Uuid.Length != 0)
            {
                hash ^= Uuid.GetHashCode();
            }
            if (TradeId.Length != 0)
            {
                hash ^= TradeId.GetHashCode();
            }
            if (Accepted != false)
            {
                hash ^= Accepted.GetHashCode();
            }
            if (OtherPartyAccepted != false)
            {
                hash ^= OtherPartyAccepted.GetHashCode();
            }
            if (Cancelled != false)
            {
                hash ^= Cancelled.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #9
0
        /// <summary>
        /// Gets the hash code
        /// </summary>
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            unchecked // Overflow is fine, just wrap
            {
                var hashCode = 41;
                // Suitable nullity checks etc, of course :)
                if (Uuid != null)
                {
                    hashCode = hashCode * 59 + Uuid.GetHashCode();
                }
                if (AgreementName != null)
                {
                    hashCode = hashCode * 59 + AgreementName.GetHashCode();
                }
                if (AgreementFileData != null)
                {
                    hashCode = hashCode * 59 + AgreementFileData.GetHashCode();
                }

                hashCode = hashCode * 59 + AutoUpdate.GetHashCode();
                if (SubRealmId != null)
                {
                    hashCode = hashCode * 59 + SubRealmId.GetHashCode();
                }
                return(hashCode);
            }
        }
コード例 #10
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (Uuid != null)
         {
             hashCode = hashCode * 59 + Uuid.GetHashCode();
         }
         if (Period != null)
         {
             hashCode = hashCode * 59 + Period.GetHashCode();
         }
         if (Practitioner != null)
         {
             hashCode = hashCode * 59 + Practitioner.GetHashCode();
         }
         if (Type != null)
         {
             hashCode = hashCode * 59 + Type.GetHashCode();
         }
         if (Status != null)
         {
             hashCode = hashCode * 59 + Status.GetHashCode();
         }
         return(hashCode);
     }
 }
コード例 #11
0
ファイル: ChatMessagePacket.cs プロジェクト: thomotron/Phinix
        public override int GetHashCode()
        {
            int hash = 1;

            if (SessionId.Length != 0)
            {
                hash ^= SessionId.GetHashCode();
            }
            if (Uuid.Length != 0)
            {
                hash ^= Uuid.GetHashCode();
            }
            if (MessageId.Length != 0)
            {
                hash ^= MessageId.GetHashCode();
            }
            if (Message.Length != 0)
            {
                hash ^= Message.GetHashCode();
            }
            if (timestamp_ != null)
            {
                hash ^= Timestamp.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #12
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (SessionId.Length != 0)
            {
                hash ^= SessionId.GetHashCode();
            }
            if (Uuid.Length != 0)
            {
                hash ^= Uuid.GetHashCode();
            }
            if (TradeId.Length != 0)
            {
                hash ^= TradeId.GetHashCode();
            }
            if (Token.Length != 0)
            {
                hash ^= Token.GetHashCode();
            }
            hash ^= items_.GetHashCode();
            hash ^= otherPartyItems_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #13
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Uuid.Length != 0)
            {
                hash ^= Uuid.GetHashCode();
            }
            if (SkuId.Length != 0)
            {
                hash ^= SkuId.GetHashCode();
            }
            if (Quantity != 0L)
            {
                hash ^= Quantity.GetHashCode();
            }
            if (timestamp_ != null)
            {
                hash ^= Timestamp.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #14
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (MsgCmd != 0)
            {
                hash ^= MsgCmd.GetHashCode();
            }
            if (Uuid.Length != 0)
            {
                hash ^= Uuid.GetHashCode();
            }
            if (TimeStart.Length != 0)
            {
                hash ^= TimeStart.GetHashCode();
            }
            if (TimeEnd.Length != 0)
            {
                hash ^= TimeEnd.GetHashCode();
            }
            if (ImageBase64.Length != 0)
            {
                hash ^= ImageBase64.GetHashCode();
            }
            if (Processed != 0)
            {
                hash ^= Processed.GetHashCode();
            }
            hash ^= targetFeatureList_.GetHashCode();
            hash ^= targetResultList_.GetHashCode();
            return(hash);
        }
コード例 #15
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (Uuid != null)
         {
             hashCode = hashCode * 59 + Uuid.GetHashCode();
         }
         if (Name != null)
         {
             hashCode = hashCode * 59 + Name.GetHashCode();
         }
         if (Description != null)
         {
             hashCode = hashCode * 59 + Description.GetHashCode();
         }
         if (Value1 != null)
         {
             hashCode = hashCode * 59 + Value1.GetHashCode();
         }
         if (Value2 != null)
         {
             hashCode = hashCode * 59 + Value2.GetHashCode();
         }
         if (Value3 != null)
         {
             hashCode = hashCode * 59 + Value3.GetHashCode();
         }
         return(hashCode);
     }
 }
コード例 #16
0
ファイル: User.cs プロジェクト: thomotron/Phinix
        public override int GetHashCode()
        {
            int hash = 1;

            if (Uuid.Length != 0)
            {
                hash ^= Uuid.GetHashCode();
            }
            if (Username.Length != 0)
            {
                hash ^= Username.GetHashCode();
            }
            if (DisplayName.Length != 0)
            {
                hash ^= DisplayName.GetHashCode();
            }
            if (LoggedIn != false)
            {
                hash ^= LoggedIn.GetHashCode();
            }
            if (AcceptingTrades != false)
            {
                hash ^= AcceptingTrades.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #17
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
             if (Uuid != null)
             hashCode = hashCode * 59 + Uuid.GetHashCode();
             if (Name != null)
             hashCode = hashCode * 59 + Name.GetHashCode();
             if (HostName != null)
             hashCode = hashCode * 59 + HostName.GetHashCode();
             
             hashCode = hashCode * 59 + Port.GetHashCode();
             
             hashCode = hashCode * 59 + IsLdaps.GetHashCode();
             if (Account != null)
             hashCode = hashCode * 59 + Account.GetHashCode();
             if (BaseDn != null)
             hashCode = hashCode * 59 + BaseDn.GetHashCode();
             if (LdapAttributes != null)
             hashCode = hashCode * 59 + LdapAttributes.GetHashCode();
         return hashCode;
     }
 }
コード例 #18
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (Uuid != null)
         {
             hashCode = hashCode * 59 + Uuid.GetHashCode();
         }
         if (NewPassword != null)
         {
             hashCode = hashCode * 59 + NewPassword.GetHashCode();
         }
         if (NewPasswordConfirmed != null)
         {
             hashCode = hashCode * 59 + NewPasswordConfirmed.GetHashCode();
         }
         if (OldPassword != null)
         {
             hashCode = hashCode * 59 + OldPassword.GetHashCode();
         }
         return(hashCode);
     }
 }
コード例 #19
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (Uuid != null)
         {
             hashCode = hashCode * 59 + Uuid.GetHashCode();
         }
         if (Name != null)
         {
             hashCode = hashCode * 59 + Name.GetHashCode();
         }
         if (Description != null)
         {
             hashCode = hashCode * 59 + Description.GetHashCode();
         }
         if (SubRealmId != null)
         {
             hashCode = hashCode * 59 + SubRealmId.GetHashCode();
         }
         if (Roles != null)
         {
             hashCode = hashCode * 59 + Roles.GetHashCode();
         }
         if (Teams != null)
         {
             hashCode = hashCode * 59 + Teams.GetHashCode();
         }
         return(hashCode);
     }
 }
コード例 #20
0
        /// <summary>
        /// Gets the hash code
        /// </summary>
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            unchecked // Overflow is fine, just wrap
            {
                var hashCode = 41;
                // Suitable nullity checks etc, of course :)
                if (Uuid != null)
                {
                    hashCode = hashCode * 59 + Uuid.GetHashCode();
                }
                if (Username != null)
                {
                    hashCode = hashCode * 59 + Username.GetHashCode();
                }
                if (Name != null)
                {
                    hashCode = hashCode * 59 + Name.GetHashCode();
                }
                if (Surname != null)
                {
                    hashCode = hashCode * 59 + Surname.GetHashCode();
                }
                if (Email != null)
                {
                    hashCode = hashCode * 59 + Email.GetHashCode();
                }
                if (PhoneNumber != null)
                {
                    hashCode = hashCode * 59 + PhoneNumber.GetHashCode();
                }
                if (Password != null)
                {
                    hashCode = hashCode * 59 + Password.GetHashCode();
                }
                if (HashedPassword != null)
                {
                    hashCode = hashCode * 59 + HashedPassword.GetHashCode();
                }

                hashCode = hashCode * 59 + IsDeleted.GetHashCode();
                if (DeletedTime != null)
                {
                    hashCode = hashCode * 59 + DeletedTime.GetHashCode();
                }
                if (Avatar != null)
                {
                    hashCode = hashCode * 59 + Avatar.GetHashCode();
                }
                if (LdapAuthenticationMode != null)
                {
                    hashCode = hashCode * 59 + LdapAuthenticationMode.GetHashCode();
                }
                if (Roles != null)
                {
                    hashCode = hashCode * 59 + Roles.GetHashCode();
                }
                return(hashCode);
            }
        }
コード例 #21
0
        public unsafe void CtorFromString_X_SameAsGuid(string correctUuid)
        {
            Assert.Multiple(() =>
            {
                Assert.AreEqual(68, correctUuid.Length);
                var correctUuidNString = string.Create(32, correctUuid, (result, uuidString) =>
                {
                    result[0]  = uuidString[3];
                    result[1]  = uuidString[4];
                    result[2]  = uuidString[5];
                    result[3]  = uuidString[6];
                    result[4]  = uuidString[7];
                    result[5]  = uuidString[8];
                    result[6]  = uuidString[9];
                    result[7]  = uuidString[10];
                    result[8]  = uuidString[14];
                    result[9]  = uuidString[15];
                    result[10] = uuidString[16];
                    result[11] = uuidString[17];
                    result[12] = uuidString[21];
                    result[13] = uuidString[22];
                    result[14] = uuidString[23];
                    result[15] = uuidString[24];
                    result[16] = uuidString[29];
                    result[17] = uuidString[30];
                    result[18] = uuidString[34];
                    result[19] = uuidString[35];
                    result[20] = uuidString[39];
                    result[21] = uuidString[40];
                    result[22] = uuidString[44];
                    result[23] = uuidString[45];
                    result[24] = uuidString[49];
                    result[25] = uuidString[50];
                    result[26] = uuidString[54];
                    result[27] = uuidString[55];
                    result[28] = uuidString[59];
                    result[29] = uuidString[60];
                    result[30] = uuidString[64];
                    result[31] = uuidString[65];
                });
                var correctUuidBytes = ConvertHexStringToByteArray(correctUuidNString);

                var guidWithNonMixedEndianBytes = new Guid(correctUuidBytes);
                var guid      = new Guid(correctUuid);
                var uuid      = new Uuid(correctUuid);
                var uuidArray = new byte[16];
                fixed(byte *pinnedUuidArray = uuidArray)
                {
                    *(Uuid *)pinnedUuidArray = uuid;
                }

                Assert.AreEqual(guid.ToString("X"), uuid.ToString("X"));
                Assert.AreEqual(correctUuidNString, uuid.ToString("N"));
                Assert.AreEqual(correctUuidBytes, uuidArray);
                Assert.AreEqual(guidWithNonMixedEndianBytes.GetHashCode(), uuid.GetHashCode());
                Assert.AreEqual(guidWithNonMixedEndianBytes.ToByteArray(), uuid.ToByteArray());
            });
        }
コード例 #22
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (Uuid != null)
         {
             hashCode = hashCode * 59 + Uuid.GetHashCode();
         }
         if (Active != null)
         {
             hashCode = hashCode * 59 + Active.GetHashCode();
         }
         if (Name != null)
         {
             hashCode = hashCode * 59 + Name.GetHashCode();
         }
         if (Gender != null)
         {
             hashCode = hashCode * 59 + Gender.GetHashCode();
         }
         if (BirthDate != null)
         {
             hashCode = hashCode * 59 + BirthDate.GetHashCode();
         }
         if (Address != null)
         {
             hashCode = hashCode * 59 + Address.GetHashCode();
         }
         if (Qualification != null)
         {
             hashCode = hashCode * 59 + Qualification.GetHashCode();
         }
         if (Telecom != null)
         {
             hashCode = hashCode * 59 + Telecom.GetHashCode();
         }
         if (Photo != null)
         {
             hashCode = hashCode * 59 + Photo.GetHashCode();
         }
         if (Cost != null)
         {
             hashCode = hashCode * 59 + Cost.GetHashCode();
         }
         if (Creation != null)
         {
             hashCode = hashCode * 59 + Creation.GetHashCode();
         }
         if (LastUpdated != null)
         {
             hashCode = hashCode * 59 + LastUpdated.GetHashCode();
         }
         return(hashCode);
     }
 }
コード例 #23
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (Uuid != null)
         {
             hashCode = hashCode * 59 + Uuid.GetHashCode();
         }
         if (Use != null)
         {
             hashCode = hashCode * 59 + Use.GetHashCode();
         }
         if (Type != null)
         {
             hashCode = hashCode * 59 + Type.GetHashCode();
         }
         if (Line != null)
         {
             hashCode = hashCode * 59 + Line.GetHashCode();
         }
         if (City != null)
         {
             hashCode = hashCode * 59 + City.GetHashCode();
         }
         if (District != null)
         {
             hashCode = hashCode * 59 + District.GetHashCode();
         }
         if (State != null)
         {
             hashCode = hashCode * 59 + State.GetHashCode();
         }
         if (Country != null)
         {
             hashCode = hashCode * 59 + Country.GetHashCode();
         }
         if (PostalCode != null)
         {
             hashCode = hashCode * 59 + PostalCode.GetHashCode();
         }
         if (Period != null)
         {
             hashCode = hashCode * 59 + Period.GetHashCode();
         }
         if (Creation != null)
         {
             hashCode = hashCode * 59 + Creation.GetHashCode();
         }
         if (LastUpdated != null)
         {
             hashCode = hashCode * 59 + LastUpdated.GetHashCode();
         }
         return(hashCode);
     }
 }
コード例 #24
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (Uuid != null)
         {
             hashCode = hashCode * 59 + Uuid.GetHashCode();
         }
         if (Name != null)
         {
             hashCode = hashCode * 59 + Name.GetHashCode();
         }
         if (Surname != null)
         {
             hashCode = hashCode * 59 + Surname.GetHashCode();
         }
         if (Username != null)
         {
             hashCode = hashCode * 59 + Username.GetHashCode();
         }
         if (Password != null)
         {
             hashCode = hashCode * 59 + Password.GetHashCode();
         }
         if (Email != null)
         {
             hashCode = hashCode * 59 + Email.GetHashCode();
         }
         if (PhoneNumber != null)
         {
             hashCode = hashCode * 59 + PhoneNumber.GetHashCode();
         }
         if (Avatar != null)
         {
             hashCode = hashCode * 59 + Avatar.GetHashCode();
         }
         if (LdapAuthenticationModeId != null)
         {
             hashCode = hashCode * 59 + LdapAuthenticationModeId.GetHashCode();
         }
         if (RoleIds != null)
         {
             hashCode = hashCode * 59 + RoleIds.GetHashCode();
         }
         if (TeamIds != null)
         {
             hashCode = hashCode * 59 + TeamIds.GetHashCode();
         }
         if (CustomAttributes != null)
         {
             hashCode = hashCode * 59 + CustomAttributes.GetHashCode();
         }
         return(hashCode);
     }
 }
コード例 #25
0
 public override int GetHashCode()
 {
     return HashCode.Combine(
         Uuid.GetHashCode(StringComparison.Ordinal),
         Name.GetHashCode(StringComparison.Ordinal),
         State.GetHashCode(),
         LastAction.GetHashCode(),
         SessionName.GetHashCode(StringComparison.Ordinal)
     );
 }
コード例 #26
0
 public override int GetHashCode()
 {
     return HashCode.Combine(
         Uuid.GetHashCode(StringComparison.Ordinal),
         ShowMenu,
         AutoStart,
         AutoStop,
         SaveState
     );
 }
コード例 #27
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Uuid.GetHashCode();
         hashCode = (hashCode * 397) ^ Major.GetHashCode();
         hashCode = (hashCode * 397) ^ Minor.GetHashCode();
         return(hashCode);
     }
 }
コード例 #28
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (uuidOneofCase_ == UuidOneofOneofCase.Uuid)
            {
                hash ^= Uuid.GetHashCode();
            }
            hash ^= (int)uuidOneofCase_;
            return(hash);
        }
コード例 #29
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (Uuid != null)
         {
             hashCode = hashCode * 59 + Uuid.GetHashCode();
         }
         if (Extension != null)
         {
             hashCode = hashCode * 59 + Extension.GetHashCode();
         }
         if (ContentType != null)
         {
             hashCode = hashCode * 59 + ContentType.GetHashCode();
         }
         if (Language != null)
         {
             hashCode = hashCode * 59 + Language.GetHashCode();
         }
         if (Data != null)
         {
             hashCode = hashCode * 59 + Data.GetHashCode();
         }
         if (Url != null)
         {
             hashCode = hashCode * 59 + Url.GetHashCode();
         }
         if (Size != null)
         {
             hashCode = hashCode * 59 + Size.GetHashCode();
         }
         if (Hash != null)
         {
             hashCode = hashCode * 59 + Hash.GetHashCode();
         }
         if (Title != null)
         {
             hashCode = hashCode * 59 + Title.GetHashCode();
         }
         if (Creation != null)
         {
             hashCode = hashCode * 59 + Creation.GetHashCode();
         }
         if (LastUpdated != null)
         {
             hashCode = hashCode * 59 + LastUpdated.GetHashCode();
         }
         return(hashCode);
     }
 }
コード例 #30
0
            public override int GetHashCode()
            {
                // Generated by IntelliJ
                int result = Uuid.GetHashCode();

                result = 31 * result + Major;
                result = 31 * result + Minor;
                result = 31 * result + Period;
                result = 31 * result + RxPower;
                result = 31 * result + TxPower;
                return(result);
            }