Example #1
0
        public static IEnumerable <int> Range(int start, int count)
        {
            long num = (long)start + (long)count - (long)1;

            if (count < 0 || num > (long)2147483647)
            {
                throw ThrowHelper.ArgumentOutOfRange("count");
            }

            for (int i = 0; i < count; i++)
            {
                yield return(start + i);
            }
        }