Exemple #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = ExecutedAt.GetHashCode();
         hashCode = (hashCode * 397) ^ (int)ActionType;
         return(hashCode);
     }
 }
Exemple #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id != 0L)
            {
                hash ^= Id.GetHashCode();
            }
            if (Side != 0)
            {
                hash ^= Side.GetHashCode();
            }
            if (Price != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Price);
            }
            if (Size != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Size);
            }
            if (executedAt_ != null)
            {
                hash ^= ExecutedAt.GetHashCode();
            }
            if (BuyChildOrderAcceptanceId.Length != 0)
            {
                hash ^= BuyChildOrderAcceptanceId.GetHashCode();
            }
            if (SellChildOrderAcceptanceId.Length != 0)
            {
                hash ^= SellChildOrderAcceptanceId.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }