コード例 #1
0
ファイル: CliReq.cs プロジェクト: lrsxnn/CSharpTest
        public override int GetHashCode()
        {
            int hash = 1;

            if (UserId != 0)
            {
                hash ^= UserId.GetHashCode();
            }
            if (ModuleId != global::Lspb.ModuleId.UnknownModel)
            {
                hash ^= ModuleId.GetHashCode();
            }
            if (MethodId != global::Lspb.ClientMsgType.ErrorClientType)
            {
                hash ^= MethodId.GetHashCode();
            }
            if (cliEnterRoom_ != null)
            {
                hash ^= CliEnterRoom.GetHashCode();
            }
            if (cliInitOver_ != null)
            {
                hash ^= CliInitOver.GetHashCode();
            }
            if (cliOperate_ != null)
            {
                hash ^= CliOperate.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ServiceId.Length != 0)
            {
                hash ^= ServiceId.GetHashCode();
            }
            if (ServiceAliasId.Length != 0)
            {
                hash ^= ServiceAliasId.GetHashCode();
            }
            if (MethodId.Length != 0)
            {
                hash ^= MethodId.GetHashCode();
            }
            if (source_ != null)
            {
                hash ^= Source.GetHashCode();
            }
            if (target_ != null)
            {
                hash ^= Target.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #3
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (MethodId != null ? MethodId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (MethodTitle != null ? MethodTitle.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (InputMessageId != null ? InputMessageId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (OutputMessageId != null ? OutputMessageId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)MethodType;
         return(hashCode);
     }
 }
コード例 #4
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (ServiceId != null ? ServiceId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (MethodId != null ? MethodId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ ServiceAlias.GetHashCode();
         hashCode = (hashCode * 397) ^ (ConsumerApplicationId != null ? ConsumerApplicationId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ ConsumerConnectionId.GetHashCode();
         hashCode = (hashCode * 397) ^ ConsumerApplicationInstanceId.GetHashCode();
         return(hashCode);
     }
 }
コード例 #5
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ServiceId != 0)
            {
                hash ^= ServiceId.GetHashCode();
            }
            if (MethodId != 0)
            {
                hash ^= MethodId.GetHashCode();
            }
            if (Token != 0)
            {
                hash ^= Token.GetHashCode();
            }
            if (ObjectId != 0UL)
            {
                hash ^= ObjectId.GetHashCode();
            }
            if (Size != 0)
            {
                hash ^= Size.GetHashCode();
            }
            if (Status != 0)
            {
                hash ^= Status.GetHashCode();
            }
            hash ^= error_.GetHashCode();
            if (Timeout != 0UL)
            {
                hash ^= Timeout.GetHashCode();
            }
            if (IsResponse != false)
            {
                hash ^= IsResponse.GetHashCode();
            }
            hash ^= forwardTargets_.GetHashCode();
            if (ServiceHash != 0)
            {
                hash ^= ServiceHash.GetHashCode();
            }
            return(hash);
        }
コード例 #6
0
ファイル: SrvRes.cs プロジェクト: lrsxnn/CSharpTest
        public override int GetHashCode()
        {
            int hash = 1;

            if (MethodId != global::Lspb.SrvMsgType.ErrorClientType)
            {
                hash ^= MethodId.GetHashCode();
            }
            if (Result != global::Lspb.Result.Success)
            {
                hash ^= Result.GetHashCode();
            }
            if (ErrStr.Length != 0)
            {
                hash ^= ErrStr.GetHashCode();
            }
            if (srvEnterRoom_ != null)
            {
                hash ^= SrvEnterRoom.GetHashCode();
            }
            if (srvInitOver_ != null)
            {
                hash ^= SrvInitOver.GetHashCode();
            }
            if (bGameInit_ != null)
            {
                hash ^= BGameInit.GetHashCode();
            }
            if (bGameStart_ != null)
            {
                hash ^= BGameStart.GetHashCode();
            }
            if (bGameFrame_ != null)
            {
                hash ^= BGameFrame.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #7
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (RequestId != 0)
            {
                hash ^= RequestId.GetHashCode();
            }
            if (ServiceId.Length != 0)
            {
                hash ^= ServiceId.GetHashCode();
            }
            if (MethodId.Length != 0)
            {
                hash ^= MethodId.GetHashCode();
            }
            if (PayloadData.Length != 0)
            {
                hash ^= PayloadData.GetHashCode();
            }
            return(hash);
        }