Пример #1
0
        protected int GetGoto(Dictionary <TState, int> statesMap)
        {
            if (hasGoto == 0)
            {
                throw new InvalidOperationException("Transition must have registered a goto.");
            }
            if (hasGoto == 2)
            {
                return(-1);
            }

            return(StateMachineBuilder <TState, TEvent> .TryGetStateIndex(@goto, statesMap));
        }
Пример #2
0
 internal StateBuilder(StateMachineBuilder <TState, TEvent> parent, TState state)
 {
     this.parent = parent;
     State       = state;
 }