示例#1
0
 public static Action GetActionForState(this IAsyncStateMachine stateMachine, int state)
 {
     return(() =>
     {
         stateMachine.SetState(state);
         stateMachine.MoveNext();
     });
 }