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

◆ All< T >()

static bool System.Linq.ImmutableArrayExtensions.All< T > ( this ImmutableArray< T > immutableArray,
Func< T, bool > predicate )
inlinestatic

Definition at line 54 of file ImmutableArrayExtensions.cs.

55 {
56 immutableArray.ThrowNullRefIfNotInitialized();
57 Requires.NotNull(predicate, "predicate");
58 T[] array = immutableArray.array;
59 foreach (T arg in array)
60 {
61 if (!predicate(arg))
62 {
63 return false;
64 }
65 }
66 return true;
67 }

References System.array, and System.Linq.predicate.