示例#1
0
            public bool Contains(TrackItem frame)
            {
                if (Name == frame.Name)
                {
                    return(true);
                }

                return(next == null ? false : next.Contains(frame));
            }
示例#2
0
 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;
     }
 }