/// <summary> /// Statechart constructor. /// </summary> /// <param name="entry">Statechart entry state.</param> /// <param name="states">Enumeration of statechart states (optional).</param> public Statechart(State entry, IEnumerable <State> states = null) { Current = entry; if (states != null) { States.AddRange(states); } }