Esempio n. 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));
        }
 internal StateBuilder(StateMachineBuilder <TState, TEvent> parent, TState state)
 {
     this.parent = parent;
     State       = state;
 }