Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = _totalBalance.GetHashCode();
         hashCode = (hashCode * 397) ^ AutoSleep.GetHashCode();
         hashCode = (hashCode * 397) ^ SleepThreshold.GetHashCode();
         hashCode = (hashCode * 397) ^ (Login != null ? Login.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Password != null ? Password.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Role != null ? Role.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ LicenseExpDate.GetHashCode();
         hashCode = (hashCode * 397) ^ (Status != null ? Status.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ConnectionID != null ? ConnectionID.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Sleep != null ? Sleep.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Alerts.GetHashCode();
         hashCode = (hashCode * 397) ^ AllTrades.GetHashCode();
         hashCode = (hashCode * 397) ^ AllTradesPro.GetHashCode();
         hashCode = (hashCode * 397) ^ Chart.GetHashCode();
         hashCode = (hashCode * 397) ^ Counter.GetHashCode();
         hashCode = (hashCode * 397) ^ L2.GetHashCode();
         hashCode = (hashCode * 397) ^ Logbook.GetHashCode();
         hashCode = (hashCode * 397) ^ Trading.GetHashCode();
         hashCode = (hashCode * 397) ^ FastOrder.GetHashCode();
         hashCode = (hashCode * 397) ^ (Email != null ? Email.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ SleepThreshold.GetHashCode();
         hashCode = (hashCode * 397) ^ ProfitControl.GetHashCode();
         hashCode = (hashCode * 397) ^ ProfitLimit.GetHashCode();
         hashCode = (hashCode * 397) ^ ProfitLossLimit.GetHashCode();
         return(hashCode);
     }
 }
Ejemplo n.º 2
0
 public override int GetHashCode()
 {
     return(Protocol.GetHashCode() + Address.GetHashCode() + Port.GetHashCode()
            + (ChannelID != null ? ChannelID.GetHashCode() : 0)
            + (ConnectionID != null ? ConnectionID.GetHashCode() : 0));
 }