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

◆ TrueForAll< T >()

static bool System.Array.TrueForAll< T > ( T[] array,
Predicate< T > match )
inlinestatic

Definition at line 2604 of file Array.cs.

2605 {
2606 if (array == null)
2607 {
2608 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.array);
2609 }
2610 if (match == null)
2611 {
2612 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.match);
2613 }
2614 for (int i = 0; i < array.Length; i++)
2615 {
2616 if (!match(array[i]))
2617 {
2618 return false;
2619 }
2620 }
2621 return true;
2622 }

References System.array, System.match, and System.ThrowHelper.ThrowArgumentNullException().