Ejemplo n.º 1
0
        public Int32Interval(int inclusiveFrom, int inclusiveTo)
        {
            this._from = inclusiveFrom;            
            this._to = inclusiveTo;

            _flags = IntervalFlags.LeftClosed | IntervalFlags.RightClosed;
        }
Ejemplo n.º 2
0
        public Int32Interval(int from, bool isFromInclusive, int to, bool itToInclusive)
        {
            this._from = from;
            this._to = to;

            _flags = 0;

            if (isFromInclusive)
                _flags.Set(IntervalFlags.LeftClosed);

            if (IsToInclusive)
                _flags.Set(IntervalFlags.RightClosed);
        }