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

◆ TryGetStateMachineForDebugger()

static Action System.Runtime.CompilerServices.AsyncMethodBuilderCore.TryGetStateMachineForDebugger ( Action action)
inlinestaticpackage

Definition at line 105 of file AsyncMethodBuilderCore.cs.

106 {
107 object target = action.Target;
108 if (!(target is IAsyncStateMachineBox asyncStateMachineBox))
109 {
110 if (!(target is ContinuationWrapper continuationWrapper))
111 {
112 return action;
113 }
114 return TryGetStateMachineForDebugger(continuationWrapper._continuation);
115 }
116 return asyncStateMachineBox.GetStateMachineObject().MoveNext;
117 }

References System.action, and System.Runtime.CompilerServices.AsyncMethodBuilderCore.TryGetStateMachineForDebugger().

Referenced by System.Threading.Tasks.AwaitTaskContinuation.GetDelegateContinuationsForDebugger(), System.Threading.Tasks.Task< TResult >.GetDelegatesFromContinuationObject(), and System.Runtime.CompilerServices.AsyncMethodBuilderCore.TryGetStateMachineForDebugger().