public ISzl GetPreviousState(ISzl current) { if (current == null) { throw new ArgumentException("Current cannot be null"); } return(DepthFirstSearch(current as SzlBase, SearchDirection.Back, false)); }
protected override bool Equals(ISzl other) { var otherMvc = other as ActionableSzl; if (otherMvc == null) { return(false); } return(BoundAction.Matches(otherMvc.BoundAction)); }
public ISzl GetNextState(ISzl current) { return(DepthFirstSearch(current as SzlBase, SearchDirection.Forward, current == null)); }
protected virtual bool Equals(ISzl other) { return(other != null && other.GetType() == GetType()); }