Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ManifestResourceInfo.cs
- EntityCommandExecutionException.cs
- AssemblyContextControlItem.cs
- DataColumnCollection.cs
- Selector.cs
- EventItfInfo.cs
- WSMessageEncoding.cs
- CustomValidator.cs
- LicenseException.cs
- followingquery.cs
- DataRowCollection.cs
- StatusBar.cs
- BamlBinaryWriter.cs
- MD5.cs
- Crc32.cs
- Type.cs
- QuaternionValueSerializer.cs
- CalendarTable.cs
- BevelBitmapEffect.cs
- ErrorHandler.cs
- MemberPathMap.cs
- OleDbWrapper.cs
- Hash.cs
- HtmlControlPersistable.cs
- DbLambda.cs
- SafeSecurityHelper.cs
- HMACSHA1.cs
- FormsAuthenticationUser.cs
- XPathDocumentBuilder.cs
- BitmapPalettes.cs
- Compiler.cs
- MultipleViewPattern.cs
- NeutralResourcesLanguageAttribute.cs
- StandardCommands.cs
- InvalidComObjectException.cs
- RawStylusActions.cs
- SafeHandle.cs
- PopupEventArgs.cs
- AddInEnvironment.cs
- IPipelineRuntime.cs
- CodeVariableReferenceExpression.cs
- XmlExceptionHelper.cs
- TreeNodeBinding.cs
- HtmlControlPersistable.cs
- LinearGradientBrush.cs
- Tool.cs
- IndexedString.cs
- SectionInput.cs
- Win32Native.cs
- SchemaNames.cs
- BinHexEncoder.cs
- Calendar.cs
- ChildTable.cs
- ButtonPopupAdapter.cs
- ToolStripOverflow.cs
- LogicalExpr.cs
- KeyBinding.cs
- ClientApiGenerator.cs
- EntityConnection.cs
- ReferentialConstraint.cs
- XmlSchemaSimpleTypeList.cs
- NamespaceDisplay.xaml.cs
- DataGridViewTextBoxCell.cs
- CodeEntryPointMethod.cs
- HTMLTextWriter.cs
- PaginationProgressEventArgs.cs
- XmlElementList.cs
- OutputCacheModule.cs
- DataGridViewEditingControlShowingEventArgs.cs
- MimeFormImporter.cs
- NullableBoolConverter.cs
- Compensate.cs
- ValidationEventArgs.cs
- AnnotationAuthorChangedEventArgs.cs
- controlskin.cs
- AtomParser.cs
- TypedLocationWrapper.cs
- StringDictionary.cs
- SystemGatewayIPAddressInformation.cs
- XmlObjectSerializerContext.cs
- AssemblyCollection.cs
- Quad.cs
- Module.cs
- DockPatternIdentifiers.cs
- ClientSettings.cs
- EffectiveValueEntry.cs
- MarshalByValueComponent.cs
- BuildManagerHost.cs
- FlowPosition.cs
- GenericAuthenticationEventArgs.cs
- EntityUtil.cs
- ellipse.cs
- TableLayoutStyleCollection.cs
- HttpCacheVaryByContentEncodings.cs
- WCFBuildProvider.cs
- TextTreeObjectNode.cs
- _UriTypeConverter.cs
- DataFormats.cs
- SecurityContext.cs
- AutomationPropertyInfo.cs