Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / XPath / Internal / XPathChildIterator.cs / 1305376 / 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
- SingleConverter.cs
- SignatureHelper.cs
- Matrix.cs
- wgx_commands.cs
- SoundPlayerAction.cs
- RegisteredExpandoAttribute.cs
- ExpressionParser.cs
- PeerToPeerException.cs
- CqlParser.cs
- HtmlImage.cs
- XmlCharCheckingReader.cs
- MsmqHostedTransportManager.cs
- WorkflowNamespace.cs
- XsdBuildProvider.cs
- ScrollEvent.cs
- WithStatement.cs
- BulletChrome.cs
- XmlNamespaceMapping.cs
- CodeGeneratorOptions.cs
- TransactionProtocol.cs
- ApplicationContext.cs
- ping.cs
- BitSet.cs
- DoubleIndependentAnimationStorage.cs
- Thumb.cs
- RegexReplacement.cs
- GeneralTransform3DCollection.cs
- SafeFindHandle.cs
- UnknownWrapper.cs
- VirtualStackFrame.cs
- SimplePropertyEntry.cs
- BinaryCommonClasses.cs
- diagnosticsswitches.cs
- ProvideValueServiceProvider.cs
- LoginCancelEventArgs.cs
- SystemWebSectionGroup.cs
- MonthCalendar.cs
- TypeDependencyAttribute.cs
- SystemColors.cs
- BinaryNode.cs
- SubclassTypeValidator.cs
- StaticContext.cs
- AppDomainProtocolHandler.cs
- SqlErrorCollection.cs
- Image.cs
- SettingsBindableAttribute.cs
- ToolStripItemImageRenderEventArgs.cs
- KeyedCollection.cs
- RtfToken.cs
- DbConnectionPoolGroup.cs
- CodePropertyReferenceExpression.cs
- CommonObjectSecurity.cs
- CommandDevice.cs
- SystemFonts.cs
- TypefaceCollection.cs
- CachedFontFace.cs
- AccessDataSourceView.cs
- Pen.cs
- InkCollectionBehavior.cs
- BufferedGraphics.cs
- XmlNotation.cs
- ValueUtilsSmi.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- ErrorHandler.cs
- HttpServerChannel.cs
- ManifestResourceInfo.cs
- TypeBrowser.xaml.cs
- _BasicClient.cs
- VirtualDirectoryMapping.cs
- ClientFormsIdentity.cs
- TextServicesLoader.cs
- IDReferencePropertyAttribute.cs
- Message.cs
- DataListCommandEventArgs.cs
- WriteFileContext.cs
- ValidationSummary.cs
- SharedUtils.cs
- Graphics.cs
- MexHttpBindingElement.cs
- ProxyWebPartManagerDesigner.cs
- DoubleLinkList.cs
- SerialReceived.cs
- RelationshipDetailsCollection.cs
- WriteFileContext.cs
- ExtractedStateEntry.cs
- SchemaHelper.cs
- ModelItem.cs
- AuthenticationModuleElementCollection.cs
- WindowsListBox.cs
- CompilationRelaxations.cs
- SimplePropertyEntry.cs
- ManagementOptions.cs
- BulletChrome.cs
- DateRangeEvent.cs
- ViewBase.cs
- TPLETWProvider.cs
- CompositeActivityCodeGenerator.cs
- BrowserTree.cs
- WebPartConnection.cs
- UdpContractFilterBehavior.cs