Пример #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = base.GetHashCode();
         hashCode = (hashCode * 397) ^ (Slug != null ? Slug.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Supply.GetHashCode();
         hashCode = (hashCode * 397) ^ MarketCap.GetHashCode();
         hashCode = (hashCode * 397) ^ Price.GetHashCode();
         hashCode = (hashCode * 397) ^ Volume.GetHashCode();
         hashCode = (hashCode * 397) ^ Change.GetHashCode();
         hashCode = (hashCode * 397) ^ Change1Hour.GetHashCode();
         hashCode = (hashCode * 397) ^ Change1Week.GetHashCode();
         hashCode = (hashCode * 397) ^ AllTimeHigh.GetHashCode();
         hashCode = (hashCode * 397) ^ AllTimeLow.GetHashCode();
         hashCode = (hashCode * 397) ^ EarliestKnownPrice.GetHashCode();
         hashCode = (hashCode * 397) ^ EarliestTradeDate.GetHashCode();
         hashCode = (hashCode * 397) ^ (Logo != null ? Logo.GetHashCode() : 0);
         return(hashCode);
     }
 }
 public override int GetHashCode()
 {
     return(Id * CryptoId * Name.GetHashCode() * Symbol.GetHashCode() * Price.GetHashCode() * PercentChange1H.GetHashCode()
            * PercentChange24H.GetHashCode() * MarketCap.GetHashCode() * LastUpdated.GetHashCode());
 }