Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / Xml / System / Xml / XPath / Internal / ResetableIterator.cs / 1 / ResetableIterator.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 abstract class ResetableIterator : XPathNodeIterator { // the best place for this constructors to be is XPathNodeIterator, to avoid DCR at this time let's ground them here public ResetableIterator() { base.count = -1; } protected ResetableIterator(ResetableIterator other) { base.count = other.count; } protected void ResetCount() { base.count = -1; } public abstract void Reset(); public virtual bool MoveToPosition(int pos) { Reset(); for(int i = CurrentPosition; i < pos ; i ++) { if(!MoveNext()) { return false; } } return true; } // Contruct extension: CurrentPosition should return 0 if MoveNext() wasn't called after Reset() // (behavior is not defined for XPathNodeIterator) public abstract override int CurrentPosition { get; } } } // 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
- SeekableMessageNavigator.cs
- TraceLog.cs
- Clause.cs
- RSAPKCS1SignatureDeformatter.cs
- WSUtilitySpecificationVersion.cs
- XmlName.cs
- ItemChangedEventArgs.cs
- FilterQuery.cs
- ToolStripContentPanel.cs
- WindowsHyperlink.cs
- ProviderConnectionPointCollection.cs
- LinqDataSourceView.cs
- DatagridviewDisplayedBandsData.cs
- UnauthorizedWebPart.cs
- TextParaClient.cs
- Registry.cs
- XmlMembersMapping.cs
- EntityCommandDefinition.cs
- AnimationClock.cs
- EditorResources.cs
- ZipPackage.cs
- MSG.cs
- OleDbParameterCollection.cs
- OdbcHandle.cs
- ScrollChrome.cs
- MenuItemAutomationPeer.cs
- CircleHotSpot.cs
- ApplicationDirectory.cs
- FolderBrowserDialog.cs
- QfeChecker.cs
- MediaElement.cs
- WebConfigurationHostFileChange.cs
- AnchoredBlock.cs
- COAUTHIDENTITY.cs
- DesignTimeData.cs
- HtmlTitle.cs
- XmlSchemaAnnotated.cs
- Trace.cs
- ToolStripDropDownClosedEventArgs.cs
- UnknownBitmapDecoder.cs
- SystemFonts.cs
- UrlParameterReader.cs
- dataprotectionpermissionattribute.cs
- SqlUserDefinedTypeAttribute.cs
- ParamArrayAttribute.cs
- DES.cs
- WasAdminWrapper.cs
- ToolStripArrowRenderEventArgs.cs
- StdValidatorsAndConverters.cs
- Adorner.cs
- StringSource.cs
- FigureParaClient.cs
- DiscoveryRequestHandler.cs
- SqlXmlStorage.cs
- FixedSOMTableRow.cs
- ToolStripOverflowButton.cs
- OraclePermissionAttribute.cs
- TypeSystem.cs
- MsmqChannelListenerBase.cs
- BackgroundFormatInfo.cs
- SchemaNotation.cs
- Win32PrintDialog.cs
- ServiceProviders.cs
- arc.cs
- ChannelDemuxer.cs
- XmlTextReaderImplHelpers.cs
- DataGridViewRowStateChangedEventArgs.cs
- WorkflowInlining.cs
- SingleObjectCollection.cs
- JavaScriptString.cs
- ExpandSegment.cs
- XmlNamedNodeMap.cs
- HierarchicalDataTemplate.cs
- HandlerFactoryWrapper.cs
- VerticalAlignConverter.cs
- KeyEventArgs.cs
- UInt16Converter.cs
- MulticastNotSupportedException.cs
- LinqDataSourceSelectEventArgs.cs
- FileStream.cs
- TableRowCollection.cs
- PaginationProgressEventArgs.cs
- QuerySafeNavigator.cs
- FloaterParagraph.cs
- Subset.cs
- InputLanguage.cs
- OleTxTransactionInfo.cs
- CustomExpressionEventArgs.cs
- Condition.cs
- CommandBinding.cs
- BStrWrapper.cs
- ServiceHandle.cs
- __Filters.cs
- DPCustomTypeDescriptor.cs
- XamlFrame.cs
- OleDbReferenceCollection.cs
- FieldNameLookup.cs
- HealthMonitoringSection.cs
- ConfigurationConverterBase.cs
- DataSourceListEditor.cs