Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- WebProxyScriptElement.cs
- DropShadowEffect.cs
- TypeListConverter.cs
- PropertyItemInternal.cs
- SafeRegistryHandle.cs
- IChannel.cs
- SignedInfo.cs
- ObjectQueryState.cs
- InteropBitmapSource.cs
- StreamUpdate.cs
- RegistryKey.cs
- Pair.cs
- DynamicMethod.cs
- Query.cs
- CalloutQueueItem.cs
- CellConstant.cs
- Soap.cs
- DuplicateDetector.cs
- DataViewManager.cs
- SignatureDescription.cs
- SimpleHandlerBuildProvider.cs
- TemplateColumn.cs
- ThreadExceptionEvent.cs
- SqlInternalConnectionSmi.cs
- TextSchema.cs
- ReflectionUtil.cs
- DataGridViewCellStyleConverter.cs
- Attributes.cs
- BindingExpression.cs
- SmiGettersStream.cs
- Oci.cs
- XmlCountingReader.cs
- WebPartCatalogAddVerb.cs
- HashCryptoHandle.cs
- RTLAwareMessageBox.cs
- SigningCredentials.cs
- TraceUtils.cs
- HealthMonitoringSectionHelper.cs
- NameValueSectionHandler.cs
- MailMessage.cs
- MsmqTransportSecurityElement.cs
- Funcletizer.cs
- XmlSchemaExporter.cs
- DateTimePicker.cs
- MembershipUser.cs
- SerializationException.cs
- ObfuscationAttribute.cs
- MatchAllMessageFilter.cs
- TextParagraphView.cs
- BuilderPropertyEntry.cs
- CompatibleComparer.cs
- TileBrush.cs
- EditableRegion.cs
- EdmPropertyAttribute.cs
- StateDesigner.CommentLayoutGlyph.cs
- OrCondition.cs
- AtomServiceDocumentSerializer.cs
- PageParserFilter.cs
- Opcode.cs
- BaseDataListActionList.cs
- DataGridTablesFactory.cs
- SelectionWordBreaker.cs
- BitmapEffect.cs
- IgnoreDeviceFilterElementCollection.cs
- FixedSchema.cs
- GridViewRowPresenter.cs
- FixedTextSelectionProcessor.cs
- ContentElement.cs
- TypeGeneratedEventArgs.cs
- XamlReader.cs
- TableLayoutSettings.cs
- XPathScanner.cs
- ComboBox.cs
- ColumnCollection.cs
- documentsequencetextcontainer.cs
- FlowLayoutPanel.cs
- WebServiceHandlerFactory.cs
- XmlSiteMapProvider.cs
- SearchExpression.cs
- WebServiceErrorEvent.cs
- TimeZoneNotFoundException.cs
- SafeEventHandle.cs
- WSSecurityOneDotOneSendSecurityHeader.cs
- ApplicationBuildProvider.cs
- X509RecipientCertificateServiceElement.cs
- XamlStyleSerializer.cs
- DrawingGroup.cs
- HtmlTextArea.cs
- TransformCollection.cs
- StackOverflowException.cs
- LinkGrep.cs
- SmiContextFactory.cs
- SafeFileMappingHandle.cs
- DataServiceConfiguration.cs
- GCHandleCookieTable.cs
- EventHandlersStore.cs
- QilNode.cs
- PenThreadWorker.cs
- PermissionAttributes.cs
- SqlConnectionHelper.cs