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

◆ Where< TSource >() [1/2]

static IEnumerable< TSource > System.Linq.Enumerable.Where< TSource > ( this IEnumerable< TSource > source,
Func< TSource, bool > predicate )
inlinestatic

Definition at line 8533 of file Enumerable.cs.

8534 {
8535 if (source == null)
8536 {
8537 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.source);
8538 }
8539 if (predicate == null)
8540 {
8541 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.predicate);
8542 }
8544 {
8545 return iterator.Where(predicate);
8546 }
8547 if (source is TSource[] array)
8548 {
8549 if (array.Length != 0)
8550 {
8552 }
8553 return Empty<TSource>();
8554 }
8556 {
8558 }
8560 }

References System.array, System.Linq.predicate, System.Linq.source, and System.Linq.ThrowHelper.ThrowArgumentNullException().