public override int GetHashCode()
        {
            int hash = 1;

            if (Isin.Length != 0)
            {
                hash ^= Isin.GetHashCode();
            }
            if (Currency.Length != 0)
            {
                hash ^= Currency.GetHashCode();
            }
            if (SecurityExchange.Length != 0)
            {
                hash ^= SecurityExchange.GetHashCode();
            }
            if (NoLevels != 0)
            {
                hash ^= NoLevels.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Ticker != null ? Ticker.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (SecurityCurrency != null ? SecurityCurrency.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (SecurityExchange != null ? SecurityExchange.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Symbol != null ? Symbol.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ StartPosition.GetHashCode();
         hashCode = (hashCode * 397) ^ EndPosition.GetHashCode();
         return(hashCode);
     }
 }