Ejemplo n.º 1
0
        public static LowCostLinq <int, RangeW, RangeW.Iterator> Range(int start, int count)
        {
            if (count < 0)
            {
                ThrowHelper.ArgumentCountCannotBeLessThanZero();
            }
            if ((((long)start) + count) > Int32.MaxValue)
            {
                ThrowHelper.InvalidRangeArgument();
            }

            var range = new RangeW(start, unchecked (start + count));

            return(new LowCostLinq <int, RangeW, RangeW.Iterator>(range));
        }