Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Range()

static IEnumerable< int > System.Linq.Enumerable.Range ( int start,
int count )
inlinestatic

Definition at line 7236 of file Enumerable.cs.

7237 {
7238 long num = (long)start + (long)count - 1;
7239 if (count < 0 || num > int.MaxValue)
7240 {
7241 ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.count);
7242 }
7243 if (count == 0)
7244 {
7245 return Empty<int>();
7246 }
7247 return new RangeIterator(start, count);
7248 }

References System.Linq.count, System.start, and System.Linq.ThrowHelper.ThrowArgumentOutOfRangeException().