Exemple #1
0
 public ChildIterator(BaseIterator iter) : base(iter.NamespaceManager)
 {
     _nav = iter.CurrentPosition == 0 ? iter.PeekNext() : iter.Current;
     if (_nav != null && _nav.HasChildren)
     {
         _nav = _nav.Clone();
     }
     else
     {
         _nav = null;
     }
 }
 public ChildIterator(BaseIterator iter) : base(iter.NamespaceManager)
 {
     this._nav = ((iter.CurrentPosition != 0) ? iter.Current : iter.PeekNext());
     if (this._nav != null && this._nav.HasChildren)
     {
         this._nav = this._nav.Clone();
     }
     else
     {
         this._nav = null;
     }
 }
Exemple #3
0
		public ChildIterator (BaseIterator iter) : base (iter.NamespaceManager) 
		{
			_nav = iter.CurrentPosition == 0 ? iter.PeekNext () : iter.Current;
			if (_nav != null && _nav.HasChildren)
				_nav = _nav.Clone ();
			else
				_nav = null;
		}