Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / Xml / System / Xml / XPath / Internal / IteratorFilter.cs / 1 / 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. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Tokenizer.cs
- Size3D.cs
- StylusPointCollection.cs
- DataGridViewColumnTypePicker.cs
- XmlAutoDetectWriter.cs
- WebColorConverter.cs
- SocketException.cs
- CodeAttributeDeclaration.cs
- KerberosSecurityTokenProvider.cs
- AmbientProperties.cs
- FlowThrottle.cs
- ReflectionHelper.cs
- DatagridviewDisplayedBandsData.cs
- XamlTreeBuilder.cs
- PropertyPath.cs
- AbstractExpressions.cs
- NavigationCommands.cs
- RequestResponse.cs
- XmlDataImplementation.cs
- MainMenu.cs
- XMLSyntaxException.cs
- ModelFunction.cs
- EmptyEnumerator.cs
- CheckBoxAutomationPeer.cs
- XamlPointCollectionSerializer.cs
- WrappedIUnknown.cs
- AsyncOperationContext.cs
- TearOffProxy.cs
- DataViewSettingCollection.cs
- SerialReceived.cs
- ThicknessAnimationUsingKeyFrames.cs
- QueryStatement.cs
- MessageDecoder.cs
- MachineKeySection.cs
- FontUnit.cs
- ObjectQuery.cs
- XamlReaderHelper.cs
- SigningProgress.cs
- ReferenceEqualityComparer.cs
- PersonalizableTypeEntry.cs
- AssemblyBuilder.cs
- ProfileGroupSettingsCollection.cs
- ValidationHelpers.cs
- ToolStripContentPanelRenderEventArgs.cs
- MemoryMappedFile.cs
- ListMarkerLine.cs
- PackageRelationshipCollection.cs
- CompoundFileDeflateTransform.cs
- WpfSharedXamlSchemaContext.cs
- DataGridViewAutoSizeModeEventArgs.cs
- XmlSerializerOperationBehavior.cs
- PageFunction.cs
- DataObjectCopyingEventArgs.cs
- SafeRightsManagementEnvironmentHandle.cs
- ProfileSection.cs
- PtsCache.cs
- DataTableCollection.cs
- TranslateTransform.cs
- TransformerInfoCollection.cs
- SafeCryptContextHandle.cs
- HtmlInputSubmit.cs
- UserPreferenceChangingEventArgs.cs
- DataBoundLiteralControl.cs
- DeploymentSection.cs
- XmlHelper.cs
- DictionaryBase.cs
- TextElementCollectionHelper.cs
- XmlQueryRuntime.cs
- HandleCollector.cs
- ProfileBuildProvider.cs
- EncryptedPackage.cs
- TextViewSelectionProcessor.cs
- TreeNodeStyleCollection.cs
- HotSpotCollection.cs
- BindingListCollectionView.cs
- MultiplexingFormatMapping.cs
- X509CertificateValidator.cs
- SamlAttribute.cs
- DataServiceProviderMethods.cs
- StringHandle.cs
- ListSortDescriptionCollection.cs
- CompiledIdentityConstraint.cs
- ResourceDescriptionAttribute.cs
- ObjectViewFactory.cs
- PropertyPushdownHelper.cs
- SimpleRecyclingCache.cs
- PanelStyle.cs
- QueueProcessor.cs
- Floater.cs
- DataSourceCache.cs
- TextSerializer.cs
- IRCollection.cs
- RC2CryptoServiceProvider.cs
- EdmScalarPropertyAttribute.cs
- InfoCardMetadataExchangeClient.cs
- EmissiveMaterial.cs
- ReadOnlyDataSourceView.cs
- XmlnsDictionary.cs
- SqlConnectionPoolProviderInfo.cs
- PagesSection.cs