protected bool Equals(Ticker other) => Equals(TradePair, other.TradePair) && Hight.Equals(other.Hight) && Low.Equals(other.Low) && Avg.Equals(other.Avg) && Volume.Equals(other.Volume) && CurrentVolume.Equals(other.CurrentVolume) && Last.Equals(other.Last) && Buy.Equals(other.Buy) && Sell.Equals(other.Sell);
public override int GetHashCode() { unchecked { var hashCode = Id.GetHashCode(); hashCode = (hashCode * 397) ^ (TradePair?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ Hight.GetHashCode(); hashCode = (hashCode * 397) ^ Low.GetHashCode(); hashCode = (hashCode * 397) ^ Avg.GetHashCode(); hashCode = (hashCode * 397) ^ Volume.GetHashCode(); hashCode = (hashCode * 397) ^ CurrentVolume.GetHashCode(); hashCode = (hashCode * 397) ^ Last.GetHashCode(); hashCode = (hashCode * 397) ^ Buy.GetHashCode(); hashCode = (hashCode * 397) ^ Sell.GetHashCode(); return(hashCode); } }
//Overriding Write() Method for the implementing of IPersist. public virtual void Write(StringBuilder sb) { sb.Append("Hight of rectangle is: ").Append(Hight.ToString()). Append(", width of rectangle is: ").Append(Width.ToString()).AppendLine("."); }