public bool Lesser(TimeFrame other) { // add comparisions for all members here return(this.unit < other.unit || (this.unit == other.unit && this.period < other.period)); }
public IntervalImpl(BarUnit unit, int interval, BarUnit secondaryUnit, int secondaryInterval) : this(unit, interval) { this.secondaryTimeFrame = new TimeFrame(secondaryUnit, secondaryInterval); CalcSecondaryType(); }
public bool Equals(TimeFrame other) { // add comparisions for all members here return(this.unit == other.unit && this.period == other.period); }