public static void Main(string[] args) { // FiniteStateMachine machine = new FiniteStateMachine(args); machine.Start(); if (machine.Result.HasValue) { Console.WriteLine(machine.Result); } else { Console.WriteLine("No result."); } }
public State(FiniteStateMachine finiteStateMachine) { machine = finiteStateMachine; }
public State3(FiniteStateMachine machine) : base(machine) { }
public StartState(FiniteStateMachine finiteStateMachine) : base(finiteStateMachine) { }