コード例 #1
0
ファイル: TrdPlaceOrder.cs プロジェクト: robber5/cs-futu-api
        public override int GetHashCode()
        {
            int hash = 1;

            if (packetID_ != null)
            {
                hash ^= PacketID.GetHashCode();
            }
            if (header_ != null)
            {
                hash ^= Header.GetHashCode();
            }
            if (TrdSide != 0)
            {
                hash ^= TrdSide.GetHashCode();
            }
            if (OrderType != 0)
            {
                hash ^= OrderType.GetHashCode();
            }
            if (Code.Length != 0)
            {
                hash ^= Code.GetHashCode();
            }
            if (Qty != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Qty);
            }
            if (Price != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Price);
            }
            if (AdjustPrice != false)
            {
                hash ^= AdjustPrice.GetHashCode();
            }
            if (AdjustSideAndLimit != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(AdjustSideAndLimit);
            }
            if (SecMarket != 0)
            {
                hash ^= SecMarket.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }