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

◆ GetDelegatesFromContinuationObject()

static Delegate[] System.Threading.Tasks.Task< TResult >.GetDelegatesFromContinuationObject ( object continuationObject)
inlinestaticprivateinherited

Definition at line 3779 of file Task.cs.

3780 {
3781 if (continuationObject != null)
3782 {
3783 if (continuationObject is Action action)
3784 {
3786 }
3787 if (continuationObject is TaskContinuation taskContinuation)
3788 {
3789 return taskContinuation.GetDelegateContinuationsForDebugger();
3790 }
3792 {
3793 Delegate[] delegateContinuationsForDebugger = task.GetDelegateContinuationsForDebugger();
3795 {
3797 }
3798 }
3799 if (continuationObject is ITaskCompletionAction taskCompletionAction)
3800 {
3801 return new Delegate[1]
3802 {
3804 };
3805 }
3807 {
3809 foreach (object item in list)
3810 {
3813 {
3814 continue;
3815 }
3817 foreach (Delegate @delegate in array)
3818 {
3819 if ((object)@delegate != null)
3820 {
3821 list2.Add(@delegate);
3822 }
3823 }
3824 }
3825 return list2.ToArray();
3826 }
3827 }
3828 return null;
3829 }
void Add(TKey key, TValue value)
static Delegate[] GetDelegatesFromContinuationObject(object continuationObject)
Definition Task.cs:3779

References System.action, System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.array, System.Threading.Tasks.Task< TResult >.GetDelegatesFromContinuationObject(), System.item, System.list, System.task, and System.Runtime.CompilerServices.AsyncMethodBuilderCore.TryGetStateMachineForDebugger().

Referenced by System.Threading.Tasks.Task< TResult >.GetDelegateContinuationsForDebugger(), and System.Threading.Tasks.Task< TResult >.GetDelegatesFromContinuationObject().