public int CompareTo(EquityQuote other) { DateTime this_time = Convert.ToDateTime(this.Time); DateTime other_time = Convert.ToDateTime(other.Time); return(other_time.CompareTo(this_time)); }
public override void Parse(XmlDocument doc) { base.Parse(doc); this.systemid = doc.ReadString("c2xml/systemid"); List<EquityQuote> quotes = new List<EquityQuote>(); foreach (XmlNode item in doc.SelectNodes("c2xml/equityseries/e")) { EquityQuote quote = new EquityQuote(); quote.Parse(item); quotes.Add(quote); } quotes.Sort(); this.EquitySeries = quotes.ToArray(); }
public int CompareTo(EquityQuote other) { DateTime this_time = Convert.ToDateTime(this.Time); DateTime other_time = Convert.ToDateTime(other.Time); return other_time.CompareTo(this_time); }