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

◆ CheckMultiContinuationTasksAndCopy< TResult >()

Definition at line 1681 of file TaskFactory.cs.

1682 {
1683 if (tasks == null)
1684 {
1685 throw new ArgumentNullException("tasks");
1686 }
1687 if (tasks.Length == 0)
1688 {
1689 throw new ArgumentException(SR.Task_MultiTaskContinuation_EmptyTaskList, "tasks");
1690 }
1691 Task<TResult>[] array = new Task<TResult>[tasks.Length];
1692 for (int i = 0; i < tasks.Length; i++)
1693 {
1694 array[i] = tasks[i];
1695 if (array[i] == null)
1696 {
1697 throw new ArgumentException(SR.Task_MultiTaskContinuation_NullTask, "tasks");
1698 }
1699 }
1700 return array;
1701 }

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