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
- InternalConfigRoot.cs
- odbcmetadatafactory.cs
- HttpWebRequest.cs
- DataControlButton.cs
- DeferredSelectedIndexReference.cs
- DispatcherEventArgs.cs
- DesignTimeXamlWriter.cs
- SafeSecurityHandles.cs
- ElementHostAutomationPeer.cs
- List.cs
- ImpersonateTokenRef.cs
- SynchronizedInputProviderWrapper.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- IBuiltInEvidence.cs
- FileDialog.cs
- XmlILConstructAnalyzer.cs
- AncestorChangedEventArgs.cs
- Buffer.cs
- RenderingEventArgs.cs
- nulltextcontainer.cs
- HandlerBase.cs
- XmlElementCollection.cs
- TopClause.cs
- UIElement.cs
- PropertyGroupDescription.cs
- Trace.cs
- EpmContentDeSerializer.cs
- Journal.cs
- ObjectListDesigner.cs
- DllNotFoundException.cs
- ExtenderProvidedPropertyAttribute.cs
- PathNode.cs
- Opcode.cs
- BoolExpression.cs
- PropertyTabChangedEvent.cs
- Thread.cs
- FormViewPagerRow.cs
- ToolStripKeyboardHandlingService.cs
- DecoderReplacementFallback.cs
- ObjectDataSourceFilteringEventArgs.cs
- securitycriticaldataClass.cs
- TimelineGroup.cs
- SpeechEvent.cs
- EllipticalNodeOperations.cs
- SafeTimerHandle.cs
- SessionStateModule.cs
- SafeSecurityHandles.cs
- InstanceOwnerException.cs
- SimpleHandlerBuildProvider.cs
- StorageMappingFragment.cs
- Tuple.cs
- PersonalizationAdministration.cs
- ThemeDictionaryExtension.cs
- CatalogZone.cs
- D3DImage.cs
- _ListenerAsyncResult.cs
- CodeSnippetExpression.cs
- Merger.cs
- ScriptManagerProxy.cs
- SourceLineInfo.cs
- HostProtectionPermission.cs
- WebRequestModuleElementCollection.cs
- XhtmlBasicCalendarAdapter.cs
- TextElementEnumerator.cs
- DrawingContextWalker.cs
- DataSourceHelper.cs
- XamlFigureLengthSerializer.cs
- ControlPropertyNameConverter.cs
- SqlNotificationRequest.cs
- MailWriter.cs
- RouteItem.cs
- Math.cs
- QuaternionAnimationBase.cs
- PathGradientBrush.cs
- WorkflowMarkupSerializerMapping.cs
- TabControl.cs
- SamlSerializer.cs
- DispatcherFrame.cs
- SimpleType.cs
- IImplicitResourceProvider.cs
- ChtmlCommandAdapter.cs
- PolicyLevel.cs
- ToolStripControlHost.cs
- CssTextWriter.cs
- CopyNodeSetAction.cs
- HttpInputStream.cs
- UserControlCodeDomTreeGenerator.cs
- FormatterConverter.cs
- XmlParserContext.cs
- _NestedSingleAsyncResult.cs
- Binding.cs
- AttributeCollection.cs
- AuthorizationRule.cs
- MemberBinding.cs
- BasicCellRelation.cs
- FormatException.cs
- DataGridColumnFloatingHeader.cs
- RegistrationServices.cs
- ObjectTypeMapping.cs
- GatewayIPAddressInformationCollection.cs