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

◆ CheckMultiContinuationTasksAndCopy()

static Task[] System.Threading.Tasks.TaskFactory< TResult >.CheckMultiContinuationTasksAndCopy ( Task[] tasks)
inlinestaticpackage

Definition at line 1659 of file TaskFactory.cs.

1660 {
1661 if (tasks == null)
1662 {
1663 throw new ArgumentNullException("tasks");
1664 }
1665 if (tasks.Length == 0)
1666 {
1667 throw new ArgumentException(SR.Task_MultiTaskContinuation_EmptyTaskList, "tasks");
1668 }
1669 Task[] array = new Task[tasks.Length];
1670 for (int i = 0; i < tasks.Length; i++)
1671 {
1672 array[i] = tasks[i];
1673 if (array[i] == null)
1674 {
1675 throw new ArgumentException(SR.Task_MultiTaskContinuation_NullTask, "tasks");
1676 }
1677 }
1678 return array;
1679 }

References System.array, System.SR.Task_MultiTaskContinuation_EmptyTaskList, System.SR.Task_MultiTaskContinuation_NullTask, and System.tasks.

Referenced by System.Threading.Tasks.TaskFactory< TResult >.ContinueWhenAllImpl(), and System.Threading.Tasks.TaskFactory< TResult >.ContinueWhenAllImpl< TAntecedentResult >().