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

◆ ConvertAll< TInput, TOutput >()

static TOutput[] System.Array.ConvertAll< TInput, TOutput > ( TInput[] array,
Converter< TInput, TOutput > converter )
inlinestatic

Definition at line 1537 of file Array.cs.

1538 {
1539 if (array == null)
1540 {
1541 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.array);
1542 }
1543 if (converter == null)
1544 {
1545 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.converter);
1546 }
1547 TOutput[] array2 = new TOutput[array.Length];
1548 for (int i = 0; i < array.Length; i++)
1549 {
1550 array2[i] = converter(array[i]);
1551 }
1552 return array2;
1553 }

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