Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Xml / System / Xml / XPath / Internal / XPathAncestorIterator.cs / 1 / XPathAncestorIterator.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 XPathAncestorIterator: XPathAxisIterator { public XPathAncestorIterator(XPathNavigator nav, XPathNodeType type, bool matchSelf) : base(nav, type, matchSelf) {} public XPathAncestorIterator(XPathNavigator nav, string name, string namespaceURI, bool matchSelf) : base(nav, name, namespaceURI, matchSelf) {} public XPathAncestorIterator(XPathAncestorIterator other) : base(other) { } public override bool MoveNext() { if (first) { first = false; if(matchSelf && Matches) { position = 1; return true; } } while (nav.MoveToParent()) { if (Matches) { position ++; return true; } } return false; } public override XPathNodeIterator Clone() { return new XPathAncestorIterator(this); } } } // 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
- DataControlReference.cs
- SqlBooleanizer.cs
- SByteConverter.cs
- JavaScriptString.cs
- PositiveTimeSpanValidatorAttribute.cs
- XmlWriterTraceListener.cs
- Button.cs
- FixedLineResult.cs
- MetadataItem_Static.cs
- MessageFormatterConverter.cs
- TransformedBitmap.cs
- GridSplitterAutomationPeer.cs
- MetadataPropertyCollection.cs
- TranslateTransform3D.cs
- ClientFormsAuthenticationCredentials.cs
- Int16Converter.cs
- ClientConfigurationSystem.cs
- LexicalChunk.cs
- WinInet.cs
- BufferedReceiveElement.cs
- CustomCredentialPolicy.cs
- RadioButtonPopupAdapter.cs
- WindowsToolbarAsMenu.cs
- Int32Collection.cs
- DesignerOptionService.cs
- PointConverter.cs
- SafeNativeMemoryHandle.cs
- PropertyValueUIItem.cs
- TempFiles.cs
- XamlTreeBuilder.cs
- BitmapPalette.cs
- RectangleConverter.cs
- EventData.cs
- SQLBytes.cs
- SocketPermission.cs
- SchemaSetCompiler.cs
- PenLineJoinValidation.cs
- SqlDataReader.cs
- ResourcePart.cs
- FrameworkContentElement.cs
- HttpRuntime.cs
- Random.cs
- ProgressChangedEventArgs.cs
- Propagator.Evaluator.cs
- MsmqDiagnostics.cs
- DataSourceNameHandler.cs
- LicFileLicenseProvider.cs
- ReflectionUtil.cs
- TouchEventArgs.cs
- SecurityKeyIdentifier.cs
- FontFamilyConverter.cs
- WinFormsSpinner.cs
- TextServicesProperty.cs
- DataGridPageChangedEventArgs.cs
- XPathDocument.cs
- DataControlLinkButton.cs
- BaseCAMarshaler.cs
- DropDownButton.cs
- ProfileGroupSettingsCollection.cs
- Convert.cs
- WebSysDescriptionAttribute.cs
- FileSystemInfo.cs
- _CookieModule.cs
- MouseActionValueSerializer.cs
- DataListItemCollection.cs
- SqlNotificationRequest.cs
- EmptyStringExpandableObjectConverter.cs
- EpmSyndicationContentDeSerializer.cs
- SmtpDigestAuthenticationModule.cs
- BCryptHashAlgorithm.cs
- DispatchChannelSink.cs
- DictionarySectionHandler.cs
- NetStream.cs
- QilXmlWriter.cs
- StrokeNodeOperations.cs
- HandleCollector.cs
- Symbol.cs
- UpdateCommand.cs
- WriteTimeStream.cs
- PointCollectionConverter.cs
- BindingSource.cs
- UserPreferenceChangedEventArgs.cs
- DataColumnChangeEvent.cs
- GlyphCache.cs
- DataGridItemCollection.cs
- AnnotationComponentChooser.cs
- UnsafeNativeMethods.cs
- XmlSignatureManifest.cs
- dataSvcMapFileLoader.cs
- VoiceInfo.cs
- OdbcParameter.cs
- ExpressionNode.cs
- MetadataSource.cs
- TemplateColumn.cs
- Events.cs
- BitmapEffectOutputConnector.cs
- BitVec.cs
- DbMetaDataFactory.cs
- ParamArrayAttribute.cs
- XmlSchemaInclude.cs