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
- TextDecoration.cs
- ToolStripMenuItemDesigner.cs
- ChannelFactoryBase.cs
- ListMarkerSourceInfo.cs
- SchemaNamespaceManager.cs
- ObjectDataSourceMethodEventArgs.cs
- SimpleHandlerFactory.cs
- RuntimeArgumentHandle.cs
- StylusDevice.cs
- ConnectionStringsExpressionBuilder.cs
- ObjectContext.cs
- TraceContextRecord.cs
- AppSettingsExpressionBuilder.cs
- SyndicationDeserializer.cs
- SecUtil.cs
- InvalidWorkflowException.cs
- MemoryStream.cs
- XmlSchemaComplexType.cs
- DESCryptoServiceProvider.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- RectangleConverter.cs
- PrintingPermission.cs
- UserPreferenceChangingEventArgs.cs
- WindowsListViewGroup.cs
- ThemeDirectoryCompiler.cs
- ContentDesigner.cs
- Section.cs
- Storyboard.cs
- MemoryStream.cs
- XamlParser.cs
- SeparatorAutomationPeer.cs
- ProcessInfo.cs
- XmlSchemaObjectTable.cs
- WebPartMenu.cs
- RenderTargetBitmap.cs
- MailSettingsSection.cs
- Base64WriteStateInfo.cs
- XmlLanguage.cs
- EntityWrapperFactory.cs
- DbMetaDataColumnNames.cs
- WeakReferenceList.cs
- ImageAutomationPeer.cs
- DocumentViewerConstants.cs
- Wrapper.cs
- TransportManager.cs
- EventProviderWriter.cs
- PrefixQName.cs
- BaseDataList.cs
- QueryTaskGroupState.cs
- SimpleBitVector32.cs
- ChtmlMobileTextWriter.cs
- KnownBoxes.cs
- XmlChildEnumerator.cs
- ObjectStateEntry.cs
- RuntimeDelegateArgument.cs
- HuffmanTree.cs
- GeneralTransform3DTo2D.cs
- FrameworkReadOnlyPropertyMetadata.cs
- DesignTimeVisibleAttribute.cs
- DataGridItemAttachedStorage.cs
- columnmapkeybuilder.cs
- ConnectionProviderAttribute.cs
- PolicyChain.cs
- OdbcFactory.cs
- DataGridAutoGeneratingColumnEventArgs.cs
- ConfigurationHelpers.cs
- MatrixCamera.cs
- SqlWorkflowPersistenceService.cs
- MenuItemStyle.cs
- HybridDictionary.cs
- RelationshipNavigation.cs
- BorderGapMaskConverter.cs
- ContainerUtilities.cs
- WindowsSolidBrush.cs
- DiscoveryVersionConverter.cs
- ToolConsole.cs
- ObjectStateManager.cs
- FileChangesMonitor.cs
- CustomError.cs
- EventLogInternal.cs
- XamlStream.cs
- QuaternionAnimationBase.cs
- ExtendedPropertiesHandler.cs
- StringAnimationBase.cs
- PropertyValue.cs
- ELinqQueryState.cs
- TypeBuilder.cs
- SelectionItemPattern.cs
- unsafeIndexingFilterStream.cs
- sitestring.cs
- SequentialWorkflowHeaderFooter.cs
- ApplicationInterop.cs
- diagnosticsswitches.cs
- NamespaceImport.cs
- StructuredProperty.cs
- Comparer.cs
- EnumUnknown.cs
- LabelInfo.cs
- ConfigurationErrorsException.cs
- WebPart.cs