Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / Xml / System / Xml / XPath / Internal / XPathChildIterator.cs / 1 / XPathChildIterator.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace MS.Internal.Xml.XPath { using System; using System.Xml; using System.Xml.XPath; using System.Diagnostics; using System.Globalization; internal class XPathChildIterator: XPathAxisIterator { public XPathChildIterator(XPathNavigator nav, XPathNodeType type) : base(nav, type, /*matchSelf:*/false) {} public XPathChildIterator(XPathNavigator nav, string name, string namespaceURI) : base(nav, name, namespaceURI, /*matchSelf:*/false) {} public XPathChildIterator(XPathChildIterator it) : base(it) {} public override XPathNodeIterator Clone() { return new XPathChildIterator(this); } public override bool MoveNext() { while ((first) ? nav.MoveToFirstChild() : nav.MoveToNext()) { first = false; if (Matches) { position++; return true; } } return false; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace MS.Internal.Xml.XPath { using System; using System.Xml; using System.Xml.XPath; using System.Diagnostics; using System.Globalization; internal class XPathChildIterator: XPathAxisIterator { public XPathChildIterator(XPathNavigator nav, XPathNodeType type) : base(nav, type, /*matchSelf:*/false) {} public XPathChildIterator(XPathNavigator nav, string name, string namespaceURI) : base(nav, name, namespaceURI, /*matchSelf:*/false) {} public XPathChildIterator(XPathChildIterator it) : base(it) {} public override XPathNodeIterator Clone() { return new XPathChildIterator(this); } public override bool MoveNext() { while ((first) ? nav.MoveToFirstChild() : nav.MoveToNext()) { first = false; if (Matches) { position++; return true; } } return false; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Bits.cs
- StylusLogic.cs
- PersonalizationStateQuery.cs
- SqlNotificationEventArgs.cs
- UserControlFileEditor.cs
- SqlClientWrapperSmiStream.cs
- PackageFilter.cs
- XmlNodeComparer.cs
- WSFederationHttpBindingCollectionElement.cs
- MSAAWinEventWrap.cs
- TextParagraphView.cs
- GridViewDeletedEventArgs.cs
- ConfigUtil.cs
- ResourceReferenceKeyNotFoundException.cs
- OdbcFactory.cs
- webeventbuffer.cs
- Codec.cs
- KeyEvent.cs
- SettingsPropertyNotFoundException.cs
- AmbientValueAttribute.cs
- DesignConnection.cs
- ServiceBusyException.cs
- WindowPatternIdentifiers.cs
- TypeSystemHelpers.cs
- AdornerLayer.cs
- XamlGridLengthSerializer.cs
- RegexStringValidator.cs
- TreeNodeBinding.cs
- BindingOperations.cs
- TemplateField.cs
- XmlElementAttributes.cs
- DataViewManagerListItemTypeDescriptor.cs
- DataSourceSelectArguments.cs
- LockCookie.cs
- Vector3DAnimationUsingKeyFrames.cs
- SecurityUtils.cs
- QuotedPrintableStream.cs
- TabPanel.cs
- ReachVisualSerializerAsync.cs
- ScrollableControl.cs
- ConfigurationConverterBase.cs
- PageAsyncTaskManager.cs
- UnsafeNativeMethodsPenimc.cs
- COM2ExtendedTypeConverter.cs
- DataDesignUtil.cs
- DrawingCollection.cs
- WindowsTooltip.cs
- EntitySetDataBindingList.cs
- ProgressBar.cs
- StrokeRenderer.cs
- OrderedDictionary.cs
- HandleRef.cs
- RelationshipWrapper.cs
- FrameworkObject.cs
- ScriptControl.cs
- DefaultExpressionVisitor.cs
- Point4D.cs
- SizeFConverter.cs
- DiscoveryVersionConverter.cs
- TextRangeAdaptor.cs
- CustomErrorCollection.cs
- WindowsClientCredential.cs
- CachedBitmap.cs
- PerCallInstanceContextProvider.cs
- RolePrincipal.cs
- FrameDimension.cs
- OpCellTreeNode.cs
- DateTimeFormatInfoScanner.cs
- RecognitionEventArgs.cs
- HtmlMeta.cs
- OSEnvironmentHelper.cs
- NameTable.cs
- CheckableControlBaseAdapter.cs
- DataGridPagerStyle.cs
- DateTimeHelper.cs
- RelationalExpressions.cs
- KoreanLunisolarCalendar.cs
- Compilation.cs
- DataServiceException.cs
- xml.cs
- CallContext.cs
- PopupEventArgs.cs
- XappLauncher.cs
- RoutedEvent.cs
- ActivityExecutorDelegateInfo.cs
- wgx_commands.cs
- UrlMappingCollection.cs
- Polyline.cs
- TreeBuilderBamlTranslator.cs
- HwndSource.cs
- PrintPreviewGraphics.cs
- BaseAddressElement.cs
- DbDataReader.cs
- DictionaryGlobals.cs
- KnownBoxes.cs
- FixedSOMTable.cs
- nulltextnavigator.cs
- NavigationExpr.cs
- ContentFilePart.cs
- PnrpPeerResolver.cs