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
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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