示例#1
0
        public bool Lesser(Interval _other)
        {
            IntervalImpl other = _other as IntervalImpl;

            if (Object.Equals(other, null))
            {
                return(this.BarUnit < _other.BarUnit ||
                       this.Period < _other.Period);
                //				||
                //					this.Secondary.BarUnit < _other.Secondary.BarUnit ||
                //					this.Secondary.Period  < _other.Secondary.Period;
            }
            else
            {
                return(this.timeFrame < other.timeFrame || this.secondaryTimeFrame < other.secondaryTimeFrame);
            }
        }
示例#2
0
        public bool Equals(Interval _other)
        {
            // add comparisions for all members here
            IntervalImpl other = _other as IntervalImpl;

            if (Object.Equals(other, null))
            {
                return(this.BarUnit == _other.BarUnit &&
                       this.Period == _other.Period);
                //				&&
                //					this.Secondary.BarUnit == _other.Secondary.BarUnit &&
                //					this.Secondary.Period == _other.Secondary.Period;
            }
            else
            {
                return(this.timeFrame == other.timeFrame && this.secondaryTimeFrame == other.secondaryTimeFrame);
            }
        }