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

◆ All< TSource >()

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

Definition at line 3659 of file Enumerable.cs.

3660 {
3661 if (source == null)
3662 {
3663 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.source);
3664 }
3665 if (predicate == null)
3666 {
3667 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.predicate);
3668 }
3669 foreach (TSource item in source)
3670 {
3671 if (!predicate(item))
3672 {
3673 return false;
3674 }
3675 }
3676 return true;
3677 }

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