Ejemplo n.º 1
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);
        }