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
- ObjectStateManager.cs
- MatrixKeyFrameCollection.cs
- CacheOutputQuery.cs
- WindowsScrollBarBits.cs
- Mappings.cs
- CacheOutputQuery.cs
- XmlDataSourceNodeDescriptor.cs
- AxisAngleRotation3D.cs
- VersionPair.cs
- Evaluator.cs
- ShaderEffect.cs
- NullReferenceException.cs
- SiteMapProvider.cs
- FieldToken.cs
- IFlowDocumentViewer.cs
- ButtonChrome.cs
- TypedDataSourceCodeGenerator.cs
- XmlRawWriterWrapper.cs
- SwitchAttribute.cs
- ExpandableObjectConverter.cs
- ToolStripDropDownButton.cs
- _AutoWebProxyScriptHelper.cs
- SafeNativeMethods.cs
- MetroSerializationManager.cs
- HotCommands.cs
- GeometryConverter.cs
- StrokeCollection2.cs
- RepeatBehaviorConverter.cs
- SplitterDesigner.cs
- RectAnimation.cs
- StringBuilder.cs
- InvalidOleVariantTypeException.cs
- _StreamFramer.cs
- PreservationFileWriter.cs
- DriveNotFoundException.cs
- WindowsGraphicsCacheManager.cs
- PageCatalogPart.cs
- PerfService.cs
- LinkLabel.cs
- StatusBarDrawItemEvent.cs
- SessionStateModule.cs
- SerializationInfoEnumerator.cs
- FontDriver.cs
- TextCompositionManager.cs
- Timer.cs
- CodeBlockBuilder.cs
- RadioButton.cs
- StringFormat.cs
- WebPartMovingEventArgs.cs
- StreamAsIStream.cs
- ResourcePermissionBaseEntry.cs
- DashStyle.cs
- EventSinkHelperWriter.cs
- MethodImplAttribute.cs
- QilTypeChecker.cs
- DataTableTypeConverter.cs
- TimeSpanConverter.cs
- ListDataHelper.cs
- DataSourceCache.cs
- RepeaterDataBoundAdapter.cs
- TreeNodeSelectionProcessor.cs
- ToolCreatedEventArgs.cs
- HashAlgorithm.cs
- MSAAWinEventWrap.cs
- UserPersonalizationStateInfo.cs
- RuntimeResourceSet.cs
- OleDbReferenceCollection.cs
- MultiSelector.cs
- basemetadatamappingvisitor.cs
- WebBrowserNavigatingEventHandler.cs
- ObjectStateFormatter.cs
- ResolveMatchesMessage11.cs
- FastEncoderWindow.cs
- DataGridViewCheckBoxColumn.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- RegexInterpreter.cs
- SByteStorage.cs
- Exceptions.cs
- TextRangeProviderWrapper.cs
- BoundPropertyEntry.cs
- CounterCreationDataConverter.cs
- LicFileLicenseProvider.cs
- AdornerDecorator.cs
- Privilege.cs
- WebPartConnection.cs
- cache.cs
- VirtualPath.cs
- BitmapPalettes.cs
- CompoundFileStorageReference.cs
- HelpEvent.cs
- HtmlInputSubmit.cs
- LongTypeConverter.cs
- SkinBuilder.cs
- SqlProcedureAttribute.cs
- FrameworkContentElement.cs
- CfgParser.cs
- ScriptRegistrationManager.cs
- TimersDescriptionAttribute.cs
- DockAndAnchorLayout.cs
- WaveHeader.cs