public void Accept(StateMachineInspector inspector) { Initial.Accept(inspector); _stateCache.Each(x => { if (Equals(x, Initial) || Equals(x, Final)) { return; } x.Accept(inspector); }); Final.Accept(inspector); }
void Visitable.Accept(StateMachineVisitor visitor) { Initial.Accept(visitor); foreach (var x in _stateCache.Values) { if (Equals(x, Initial) || Equals(x, Final)) { continue; } x.Accept(visitor); } Final.Accept(visitor); }
public void Accept(StateMachineInspector inspector) { Initial.Accept(inspector); _stateCache.Each(x => { if (x == Initial || x == Final) { return; } x.Accept(inspector); }); Final.Accept(inspector); }