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

◆ Any< TSource >() [2/2]

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

Definition at line 3639 of file Enumerable.cs.

3640 {
3641 if (source == null)
3642 {
3643 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.source);
3644 }
3645 if (predicate == null)
3646 {
3647 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.predicate);
3648 }
3649 foreach (TSource item in source)
3650 {
3651 if (predicate(item))
3652 {
3653 return true;
3654 }
3655 }
3656 return false;
3657 }

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