public bool Contains(TrackItem frame) { if (Name == frame.Name) { return(true); } return(next == null ? false : next.Contains(frame)); }
internal void Push(TrackItem frame) { if (_root == null) { _root = _current = frame; } else { if (_root.Contains(frame)) { throw new LoopDependencyException(_root.ToStackString()); } _current.Attach(frame); _current = frame; } }