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

◆ ForEach< T >()

static void System.Array.ForEach< T > ( T[] array,
Action< T > action )
inlinestatic

Definition at line 1792 of file Array.cs.

1793 {
1794 if (array == null)
1795 {
1796 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.array);
1797 }
1798 if (action == null)
1799 {
1800 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.action);
1801 }
1802 for (int i = 0; i < array.Length; i++)
1803 {
1804 action(array[i]);
1805 }
1806 }

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