Click or drag to resize

PushdownAutomatonTPushStateAutoTState Method

Pushes a state to the top of the stack and pauses the underlying state. If the state is not registered, it will automatically be and its empty constructor will be used to create the instances.

Namespace:  Archon.SwissArmyLib.Automata
Assembly:  Archon.SwissArmyLib (in Archon.SwissArmyLib.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public TState PushStateAuto<TState>()
where TState : new(), Object, IPdaState<T>
Request Example View Source

Type Parameters

TState
The type of the state to change to.

Return Value

Type: TState
The new state.
See Also