Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / XPath / Internal / IteratorFilter.cs / 1305376 / IteratorFilter.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 IteratorFilter : XPathNodeIterator { private XPathNodeIterator innerIterator; private string name; private int position = 0; internal IteratorFilter(XPathNodeIterator innerIterator, string name) { this.innerIterator = innerIterator; this.name = name; } private IteratorFilter(IteratorFilter it) { this.innerIterator = it.innerIterator.Clone(); this.name = it.name; this.position = it.position; } public override XPathNodeIterator Clone() { return new IteratorFilter(this); } public override XPathNavigator Current { get { return innerIterator.Current;} } public override int CurrentPosition { get { return this.position; } } public override bool MoveNext() { while(innerIterator.MoveNext()) { if(innerIterator.Current.LocalName == this.name) { this.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
- LinkedResourceCollection.cs
- UpDownEvent.cs
- RemoteHelper.cs
- Glyph.cs
- MruCache.cs
- DataServiceQueryContinuation.cs
- CodeAttachEventStatement.cs
- CodeDomSerializerBase.cs
- GeneralTransform3DGroup.cs
- DataIdProcessor.cs
- DisableDpiAwarenessAttribute.cs
- CodeDirectionExpression.cs
- StyleSheetDesigner.cs
- HwndSubclass.cs
- SingleTagSectionHandler.cs
- IntPtr.cs
- SizeAnimationBase.cs
- WebDescriptionAttribute.cs
- EntityReference.cs
- EdmMember.cs
- WmfPlaceableFileHeader.cs
- Vector3D.cs
- SocketSettings.cs
- SByte.cs
- WebPartConnectionsEventArgs.cs
- AnonymousIdentificationSection.cs
- ArrayList.cs
- RelationshipWrapper.cs
- ExpressionReplacer.cs
- CodeObject.cs
- ExpressionParser.cs
- HorizontalAlignConverter.cs
- QilFunction.cs
- XmlAttributeAttribute.cs
- ComboBoxRenderer.cs
- ObjectQueryProvider.cs
- InfoCardRSACryptoProvider.cs
- HScrollBar.cs
- EntityWithChangeTrackerStrategy.cs
- ListItemParagraph.cs
- cookiecollection.cs
- ViewStateChangedEventArgs.cs
- PropertyKey.cs
- StandardToolWindows.cs
- NavigationProperty.cs
- ControlPersister.cs
- StorageScalarPropertyMapping.cs
- DesignerOptionService.cs
- StylusButtonCollection.cs
- StoragePropertyMapping.cs
- PowerEase.cs
- SimpleBitVector32.cs
- TemplatedWizardStep.cs
- IApplicationTrustManager.cs
- WebPartEditorApplyVerb.cs
- Wizard.cs
- SmiMetaData.cs
- RadialGradientBrush.cs
- MemberListBinding.cs
- Stacktrace.cs
- WpfWebRequestHelper.cs
- DataGridHyperlinkColumn.cs
- ControlPropertyNameConverter.cs
- SQLInt16.cs
- EntityCollection.cs
- errorpatternmatcher.cs
- NativeCompoundFileAPIs.cs
- ToolStrip.cs
- BookmarkWorkItem.cs
- WebAdminConfigurationHelper.cs
- RowToFieldTransformer.cs
- XmlSchemaSimpleTypeRestriction.cs
- DataSourceControl.cs
- QueryExtender.cs
- COM2ExtendedTypeConverter.cs
- QfeChecker.cs
- Input.cs
- TreeNodeCollection.cs
- ListDictionaryInternal.cs
- WpfXamlMember.cs
- httpstaticobjectscollection.cs
- WeakEventTable.cs
- BooleanAnimationBase.cs
- DiagnosticTrace.cs
- SequenceDesigner.cs
- SafeThemeHandle.cs
- EntityClassGenerator.cs
- CorrelationActionMessageFilter.cs
- _ListenerResponseStream.cs
- InputLanguageCollection.cs
- WebPartCatalogCloseVerb.cs
- BinaryReader.cs
- DispatcherFrame.cs
- SqlException.cs
- ClientCredentialsElement.cs
- XsdValidatingReader.cs
- ActivationWorker.cs
- ScrollPattern.cs
- BaseUriHelper.cs
- XmlCustomFormatter.cs