C# Class 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.

Inheritance: System.Xml.XPath.XPathNodeIterator
Afficher le fichier Open project: Monobjc/monobjc-tools Class Usage Examples

Méthodes publiques

Méthode Description
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

Method Details

Add() public méthode

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.
Résultat void

Add() public méthode

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

Add() public méthode

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.
Résultat void

Clone() public méthode

See XPathNodeIterator.Clone.
public Clone ( ) : XPathNodeIterator
Résultat System.Xml.XPath.XPathNodeIterator

Contains() public méthode

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.
Résultat bool

ContainsValue() public méthode

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.
Résultat bool

MoveNext() public méthode

See XPathNodeIterator.MoveNext.
public MoveNext ( ) : bool
Résultat bool

RemoveAt() public méthode

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

Reset() public méthode

Resets the iterator.
public Reset ( ) : void
Résultat void

XPathNavigatorIterator() public méthode

Initializes a new instance of the XPathNavigatorIterator.
public XPathNavigatorIterator ( ) : System
Résultat System

XPathNavigatorIterator() public méthode

Initializes a new instance of the XPathNavigatorIterator using given list of navigators.
public XPathNavigatorIterator ( List navigators ) : System
navigators List
Résultat System

XPathNavigatorIterator() public méthode

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
Résultat System

XPathNavigatorIterator() public méthode

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

XPathNavigatorIterator() public méthode

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
Résultat System

XPathNavigatorIterator() public méthode

Initializes a new instance of the XPathNavigatorIterator with given initial capacity.
public XPathNavigatorIterator ( int capacity ) : System
capacity int
Résultat System

this() public méthode

Gets or sets the element at the specified index
public this ( int index ) : XPathNavigator
index int
Résultat System.Xml.XPath.XPathNavigator