System.Xml.Xsl.Runtime.PrecedingSiblingDocOrderIterator.Create C# (CSharp) Method

Create() public method

Initialize the PrecedingSiblingDocOrderIterator.
public Create ( XPathNavigator context, XmlNavigatorFilter filter ) : void
context System.Xml.XPath.XPathNavigator
filter XmlNavigatorFilter
return void
        public void Create(XPathNavigator context, XmlNavigatorFilter filter) {
            this.filter = filter;
            this.navCurrent = XmlQueryRuntime.SyncToNavigator(this.navCurrent, context);
            this.navEnd = XmlQueryRuntime.SyncToNavigator(this.navEnd, context);
            this.needFirst = true;

            // If the context node will be filtered out, then use ComparePosition to
            // determine when the context node has been passed by.  Otherwise, IsSamePosition
            // is sufficient to determine when the context node has been reached.
            this.useCompPos = this.filter.IsFiltered(context);
        }
PrecedingSiblingDocOrderIterator