Ejemplo n.º 1
0
        public override bool Equals(object obj)
        {
            var other = obj as BitcoinDollarPair;

            return(PriceBTC.AlmostEquals(other.PriceBTC) && PriceUSD.AlmostEquals(other.PriceUSD));
        }
Ejemplo n.º 2
0
 public override int GetHashCode()
 {
     return(HashUtil.CombineHashes(PriceBTC.GetHashCode(), PriceUSD.GetHashCode()));
 }