コード例 #1
0
 // Token: 0x06005D1A RID: 23834 RVA: 0x00146724 File Offset: 0x00144924
 internal static Task TryGetContinuationTask(Action action)
 {
     if (action != null)
     {
         AsyncMethodBuilderCore.ContinuationWrapper continuationWrapper = action.Target as AsyncMethodBuilderCore.ContinuationWrapper;
         if (continuationWrapper != null)
         {
             return(continuationWrapper.m_innerTask);
         }
     }
     return(null);
 }
コード例 #2
0
        // Token: 0x06005D19 RID: 23833 RVA: 0x001466DC File Offset: 0x001448DC
        internal static Action TryGetStateMachineForDebugger(Action action)
        {
            object target = action.Target;

            AsyncMethodBuilderCore.MoveNextRunner moveNextRunner = target as AsyncMethodBuilderCore.MoveNextRunner;
            if (moveNextRunner != null)
            {
                return(new Action(moveNextRunner.m_stateMachine.MoveNext));
            }
            AsyncMethodBuilderCore.ContinuationWrapper continuationWrapper = target as AsyncMethodBuilderCore.ContinuationWrapper;
            if (continuationWrapper != null)
            {
                return(AsyncMethodBuilderCore.TryGetStateMachineForDebugger(continuationWrapper.m_continuation));
            }
            return(action);
        }