public bool RemoveTransition(StateTransition <TStateContext> transition) { return(transitions.Remove(transition)); }
public IDisposable AddTransition(StateTransition <TStateContext> transition) { transitions.Add(transition); return(Disposable.Create(transitions, transition)); }