C# 클래스 Mvp.Xml.Common.XPath.XPathNavigatorIterator

An XPathNodeIterator that allows arbitrary addition of the XPathNavigator nodes that belong to the set.

Author: Daniel Cazzulino, blog

Contributors: Oleg Tkachenko, http://www.xmllab.net.

상속: System.Xml.XPath.XPathNodeIterator
파일 보기 프로젝트 열기: Monobjc/monobjc-tools 1 사용 예제들

공개 메소드들

메소드 설명
Add ( IEnumerable navigators ) : void

Adds a IEnumerable<XPathNavigator> containing a set of navigators to add.

Add ( XPathNavigator navigator ) : void

Adds a XPathNavigator to the set.

Add ( XPathNodeIterator iterator ) : void

Adds a XPathNodeIterator containing a set of navigators to add.

Clone ( ) : XPathNodeIterator

See XPathNodeIterator.Clone.

Contains ( XPathNavigator value ) : bool

Determines whether the list contains a navigator positioned at the same location as the specified XPathNavigator. This method relies on the IsSamePositon() method of the XPathNavightor.

ContainsValue ( string value ) : bool

Determines whether the list contains a navigator whose Value property matches the target value

MoveNext ( ) : bool

See XPathNodeIterator.MoveNext.

RemoveAt ( int index ) : void

Removes the list item at the specified index.

Reset ( ) : void

Resets the iterator.

XPathNavigatorIterator ( ) : System

Initializes a new instance of the XPathNavigatorIterator.

XPathNavigatorIterator ( List navigators ) : System

Initializes a new instance of the XPathNavigatorIterator using given list of navigators.

XPathNavigatorIterator ( XPathNavigator navigator ) : System

Initializes a new instance of the XPathNavigatorIterator, using the received navigator as the initial item in the set.

XPathNavigatorIterator ( XPathNodeIterator iterator ) : System

Initializes a new instance of the XPathNavigatorIterator using given list of navigators.

XPathNavigatorIterator ( XPathNodeIterator iterator, bool removeDuplicates ) : System

Initializes a new instance of the XPathNavigatorIterator using given list of navigators.

XPathNavigatorIterator ( int capacity ) : System

Initializes a new instance of the XPathNavigatorIterator with given initial capacity.

this ( int index ) : XPathNavigator

Gets or sets the element at the specified index

메소드 상세

Add() 공개 메소드

Adds a IEnumerable<XPathNavigator> containing a set of navigators to add.
public Add ( IEnumerable navigators ) : void
navigators IEnumerable The set of navigators to add. Each one is cloned automatically.
리턴 void

Add() 공개 메소드

Adds a XPathNavigator to the set.
public Add ( XPathNavigator navigator ) : void
navigator System.Xml.XPath.XPathNavigator The navigator to add. It's cloned automatically.
리턴 void

Add() 공개 메소드

Adds a XPathNodeIterator containing a set of navigators to add.
public Add ( XPathNodeIterator iterator ) : void
iterator System.Xml.XPath.XPathNodeIterator The set of navigators to add. Each one is cloned automatically.
리턴 void

Clone() 공개 메소드

See XPathNodeIterator.Clone.
public Clone ( ) : XPathNodeIterator
리턴 System.Xml.XPath.XPathNodeIterator

Contains() 공개 메소드

Determines whether the list contains a navigator positioned at the same location as the specified XPathNavigator. This method relies on the IsSamePositon() method of the XPathNavightor.
public Contains ( XPathNavigator value ) : bool
value System.Xml.XPath.XPathNavigator The object to locate in the list.
리턴 bool

ContainsValue() 공개 메소드

Determines whether the list contains a navigator whose Value property matches the target value
public ContainsValue ( string value ) : bool
value string The value to locate in the list.
리턴 bool

MoveNext() 공개 메소드

See XPathNodeIterator.MoveNext.
public MoveNext ( ) : bool
리턴 bool

RemoveAt() 공개 메소드

Removes the list item at the specified index.
public RemoveAt ( int index ) : void
index int The zero-based index of the item to remove.
리턴 void

Reset() 공개 메소드

Resets the iterator.
public Reset ( ) : void
리턴 void

XPathNavigatorIterator() 공개 메소드

Initializes a new instance of the XPathNavigatorIterator.
public XPathNavigatorIterator ( ) : System
리턴 System

XPathNavigatorIterator() 공개 메소드

Initializes a new instance of the XPathNavigatorIterator using given list of navigators.
public XPathNavigatorIterator ( List navigators ) : System
navigators List
리턴 System

XPathNavigatorIterator() 공개 메소드

Initializes a new instance of the XPathNavigatorIterator, using the received navigator as the initial item in the set.
public XPathNavigatorIterator ( XPathNavigator navigator ) : System
navigator System.Xml.XPath.XPathNavigator
리턴 System

XPathNavigatorIterator() 공개 메소드

Initializes a new instance of the XPathNavigatorIterator using given list of navigators.
public XPathNavigatorIterator ( XPathNodeIterator iterator ) : System
iterator System.Xml.XPath.XPathNodeIterator
리턴 System

XPathNavigatorIterator() 공개 메소드

Initializes a new instance of the XPathNavigatorIterator using given list of navigators.
public XPathNavigatorIterator ( XPathNodeIterator iterator, bool removeDuplicates ) : System
iterator System.Xml.XPath.XPathNodeIterator
removeDuplicates bool
리턴 System

XPathNavigatorIterator() 공개 메소드

Initializes a new instance of the XPathNavigatorIterator with given initial capacity.
public XPathNavigatorIterator ( int capacity ) : System
capacity int
리턴 System

this() 공개 메소드

Gets or sets the element at the specified index
public this ( int index ) : XPathNavigator
index int
리턴 System.Xml.XPath.XPathNavigator