src/StateMachine.cs
/// <summary>
///     REQUIRED. Adds a new state to the state machine. A state machine MUST have at least one state.
/// </summary>
/// <param name="stateName">Name of the state</param>
/// <param name="stateBuilder">
///     Instance of <see cref="State.Builder" />. Note that the <see cref="State" /> object is not built until
///     the <see cref="StateMachine" /> is built so any modifications on the state model will be reflected in this object.
/// </param>
/// <typeparam name="T"></typeparam>
/// <returns>This object for method chaining.</returns>
REQUIRED. Adds a new state to the state machine. A state machine MUST have at least one state.
REQUIRED . Adds a new state to the state machine . A state machine MUST have at least one state .
public Builder State<T>(string stateName, State.IBuilder<T> stateBuilder) where T : State
            {
                _states.Add(stateName, stateBuilder);
                return this;
            }
public Builder State < T > ( string stateName , State . IBuilder < T > stateBuilder ) where T : State { _states . Add ( stateName , stateBuilder ) ; return this ; }
REQUIRED.
REQUIRED .
This object for method chaining.
This object for method chaining .
stateName
string
Name of the state
Name of the state
stateBuilder
State.IBuilder<T>
Instance of . Note that the  object is not built until
the  is built so any modifications on the state model will be reflected in this object.
Instance of . Note that the object is not built until the is built so any modifications on the state model will be reflected in this object .
typeparam
None