Ejemplo n.º 1
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (ShowQuantityInsteadOfAmount != null)
         {
             hashCode = hashCode * 59 + ShowQuantityInsteadOfAmount.GetHashCode();
         }
         if (SupportDOM != null)
         {
             hashCode = hashCode * 59 + SupportDOM.GetHashCode();
         }
         if (SupportBrackets != null)
         {
             hashCode = hashCode * 59 + SupportBrackets.GetHashCode();
         }
         if (SupportOrderBrackets != null)
         {
             hashCode = hashCode * 59 + SupportOrderBrackets.GetHashCode();
         }
         if (SupportPositionBrackets != null)
         {
             hashCode = hashCode * 59 + SupportPositionBrackets.GetHashCode();
         }
         if (SupportClosePosition != null)
         {
             hashCode = hashCode * 59 + SupportClosePosition.GetHashCode();
         }
         if (SupportEditAmount != null)
         {
             hashCode = hashCode * 59 + SupportEditAmount.GetHashCode();
         }
         if (SupportLevel2Data != null)
         {
             hashCode = hashCode * 59 + SupportLevel2Data.GetHashCode();
         }
         if (SupportMultiposition != null)
         {
             hashCode = hashCode * 59 + SupportMultiposition.GetHashCode();
         }
         if (SupportPLUpdate != null)
         {
             hashCode = hashCode * 59 + SupportPLUpdate.GetHashCode();
         }
         if (SupportReducePosition != null)
         {
             hashCode = hashCode * 59 + SupportReducePosition.GetHashCode();
         }
         if (SupportStopLimitOrders != null)
         {
             hashCode = hashCode * 59 + SupportStopLimitOrders.GetHashCode();
         }
         if (SupportOrdersHistory != null)
         {
             hashCode = hashCode * 59 + SupportOrdersHistory.GetHashCode();
         }
         if (SupportExecutions != null)
         {
             hashCode = hashCode * 59 + SupportExecutions.GetHashCode();
         }
         if (SupportDigitalSignature != null)
         {
             hashCode = hashCode * 59 + SupportDigitalSignature.GetHashCode();
         }
         return(hashCode);
     }
 }