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

◆ ToObjectArray()

static object[] System.Threading.ThreadPool.ToObjectArray ( IEnumerable< object > workitems)
inlinestaticprivate

Definition at line 649 of file ThreadPool.cs.

650 {
651 int num = 0;
652 foreach (object workitem in workitems)
653 {
654 num++;
655 }
656 object[] array = new object[num];
657 num = 0;
658 foreach (object workitem2 in workitems)
659 {
660 if (num < array.Length)
661 {
662 array[num] = workitem2;
663 }
664 num++;
665 }
666 return array;
667 }

References System.array.

Referenced by System.Threading.ThreadPool.GetGloballyQueuedWorkItemsForDebugger(), System.Threading.ThreadPool.GetLocallyQueuedWorkItemsForDebugger(), and System.Threading.ThreadPool.GetQueuedWorkItemsForDebugger().