Example #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (CommandId.Length != 0)
            {
                hash ^= CommandId.GetHashCode();
            }
            if (status_ != null)
            {
                hash ^= Status.GetHashCode();
            }
            if (TransactionId.Length != 0)
            {
                hash ^= TransactionId.GetHashCode();
            }
            if (traceContext_ != null)
            {
                hash ^= TraceContext.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #2
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);
        }
Example #3
0
        /// <summary></summary>
        public override int GetHashCode()
        {
            var code = 13;

            code = (code * 7) + CommandId.GetHashCode();
            if (TitleEnumerationKey != null)
            {
                code = (code * 7) + TitleEnumerationKey.GetHashCode();
            }
            if (Items != null)
            {
                var arrCode = 0;
                foreach (var item in Items)
                {
                    arrCode += item.GetHashCode();
                }
                code = (code * 7) + arrCode;
            }
            return(code);
        }
Example #4
0
                public override int GetHashCode()
                {
                    int hash = 1;

                    if (PlayerId != 0)
                    {
                        hash ^= PlayerId.GetHashCode();
                    }
                    if (CommandId != 0)
                    {
                        hash ^= CommandId.GetHashCode();
                    }
                    if (Parameter.Length != 0)
                    {
                        hash ^= Parameter.GetHashCode();
                    }
                    if (_unknownFields != null)
                    {
                        hash ^= _unknownFields.GetHashCode();
                    }
                    return(hash);
                }
Example #5
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((ReferenceId != null ? ReferenceId.GetHashCode() : 0) * 397) ^ CommandId.GetHashCode());
     }
 }
Example #6
0
 public override int GetHashCode()
 {
     return(CommandId.GetHashCode());
 }