コード例 #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (TransactionId.Length != 0)
            {
                hash ^= TransactionId.GetHashCode();
            }
            if (CommandId.Length != 0)
            {
                hash ^= CommandId.GetHashCode();
            }
            if (WorkflowId.Length != 0)
            {
                hash ^= WorkflowId.GetHashCode();
            }
            if (effectiveAt_ != null)
            {
                hash ^= EffectiveAt.GetHashCode();
            }
            hash ^= events_.GetHashCode();
            if (Offset.Length != 0)
            {
                hash ^= Offset.GetHashCode();
            }
            if (traceContext_ != null)
            {
                hash ^= TraceContext.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #2
0
ファイル: Transition.cs プロジェクト: zhh007/objectflow
 public override int GetHashCode()
 {
     unchecked
     {
         int multiplier = 31;
         int ret        = 0;
         if (WorkflowId != null)
         {
             ret = (ret + WorkflowId.GetHashCode()) * multiplier;
         }
         if (From != null)
         {
             ret = (ret + From.GetHashCode()) * multiplier;
         }
         if (To != null)
         {
             ret = (ret + To.GetHashCode()) * multiplier;
         }
         return(ret);
     }
 }
コード例 #3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Offset.Length != 0)
            {
                hash ^= Offset.GetHashCode();
            }
            if (WorkflowId.Length != 0)
            {
                hash ^= WorkflowId.GetHashCode();
            }
            hash ^= activeContracts_.GetHashCode();
            if (traceContext_ != null)
            {
                hash ^= TraceContext.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #4
0
 public override int GetHashCode()
 {
     return(WorkflowId.GetHashCode());
 }