public override int GetHashCode() { unchecked { int hashCode = (Code != null ? Code.GetHashCode() : 0); hashCode = (hashCode * 397) ^ InitDateTo.GetHashCode(); hashCode = (hashCode * 397) ^ InitDateFrom.GetHashCode(); hashCode = (hashCode * 397) ^ LotSize; hashCode = (hashCode * 397) ^ (Quotes != null ? Quotes.GetHashCode() : 0); return(hashCode); } }
protected bool Equals(Symbol other) { return(string.Equals(Code, other.Code) && InitDateTo.Equals(other.InitDateTo) && InitDateFrom.Equals(other.InitDateFrom) && LotSize == other.LotSize && Equals(Quotes, other.Quotes)); }