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

◆ Repeat< TResult >()

static IEnumerable< TResult > System.Linq.Enumerable.Repeat< TResult > ( TResult element,
int count )
inlinestatic

Definition at line 7250 of file Enumerable.cs.

7251 {
7252 if (count < 0)
7253 {
7254 ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.count);
7255 }
7256 if (count == 0)
7257 {
7258 return Empty<TResult>();
7259 }
7260 return new RepeatIterator<TResult>(element, count);
7261 }
static IEnumerable< TResult > Empty< TResult >()

References System.Linq.count, System.Linq.Enumerable.Empty< TResult >(), and System.Linq.ThrowHelper.ThrowArgumentOutOfRangeException().