Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / Util / DoubleLinkListEnumerator.cs / 1 / DoubleLinkListEnumerator.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* * DoubleLinkList * * Copyright (c) 1998-1999, Microsoft Corporation * */ namespace System.Web.Util { using System.Runtime.Serialization.Formatters; using System.Collections; internal class DoubleLinkListEnumerator : IEnumerator { private DoubleLinkList _list; private DoubleLink _current; internal DoubleLinkListEnumerator(DoubleLinkList list) { _list = list; _current = list; } public void Reset() { _current = _list; } public bool MoveNext() { if (_current.Next == _list) { _current = null; return false; } _current = _current.Next; return true; } public Object Current { get { if (_current == null || _current == _list) throw new InvalidOperationException(); return _current.Item; } } internal DoubleLink GetDoubleLink() { return _current; } #if UNUSED_CODE internal void Remove() { if (_current == null || _current == _list) throw new InvalidOperationException(); DoubleLink t = _current; _current = _current.Prev; t.Remove(); } #endif } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlTypeAttribute.cs
- UnsafeNativeMethods.cs
- ZipIORawDataFileBlock.cs
- HtmlGenericControl.cs
- XmlIgnoreAttribute.cs
- TypeConverterValueSerializer.cs
- InsufficientMemoryException.cs
- SafePointer.cs
- WeakReadOnlyCollection.cs
- BoundColumn.cs
- SequentialWorkflowHeaderFooter.cs
- Stackframe.cs
- QilVisitor.cs
- WizardStepBase.cs
- FigureHelper.cs
- FixedPageStructure.cs
- FormsAuthenticationUser.cs
- GridViewSortEventArgs.cs
- ChannelEndpointElement.cs
- PropertyCondition.cs
- PersonalizationProviderCollection.cs
- ClrPerspective.cs
- MobileErrorInfo.cs
- PrefixHandle.cs
- NativeMethods.cs
- HtmlToClrEventProxy.cs
- ExpanderAutomationPeer.cs
- ListInitExpression.cs
- ExpandableObjectConverter.cs
- OleDbFactory.cs
- HttpWebResponse.cs
- ComPlusContractBehavior.cs
- StreamAsIStream.cs
- TableParagraph.cs
- SmtpDateTime.cs
- CheckPair.cs
- SectionInput.cs
- Run.cs
- StreamWithDictionary.cs
- DataFormats.cs
- Menu.cs
- AsymmetricSignatureFormatter.cs
- SyntaxCheck.cs
- TextMarkerSource.cs
- UnSafeCharBuffer.cs
- ProviderIncompatibleException.cs
- PrtCap_Public.cs
- XmlQueryOutput.cs
- ThicknessAnimationUsingKeyFrames.cs
- CLRBindingWorker.cs
- StyleCollection.cs
- Console.cs
- ImageListUtils.cs
- securestring.cs
- ElementProxy.cs
- TextRangeProviderWrapper.cs
- NumericUpDown.cs
- DomNameTable.cs
- DataViewManagerListItemTypeDescriptor.cs
- IteratorFilter.cs
- BooleanStorage.cs
- XamlReader.cs
- UriParserTemplates.cs
- SymLanguageType.cs
- TypedCompletedAsyncResult.cs
- FlowchartStart.xaml.cs
- WindowsListViewGroupSubsetLink.cs
- StringFreezingAttribute.cs
- PriorityChain.cs
- InvalidPrinterException.cs
- GeneralTransform3DGroup.cs
- KeyValueConfigurationCollection.cs
- UnsafeNativeMethods.cs
- SoapBinding.cs
- SingleAnimationBase.cs
- SessionStateContainer.cs
- TransportElement.cs
- MessageSmuggler.cs
- Common.cs
- SrgsRuleRef.cs
- DbCommandTree.cs
- XomlCompilerParameters.cs
- HtmlButton.cs
- MD5CryptoServiceProvider.cs
- CombinedTcpChannel.cs
- StylusPointPropertyInfo.cs
- XmlProcessingInstruction.cs
- COM2ColorConverter.cs
- PresentationTraceSources.cs
- HostExecutionContextManager.cs
- TextSpanModifier.cs
- TextServicesCompartment.cs
- JournalEntry.cs
- Style.cs
- FlowPosition.cs
- MetabaseSettingsIis7.cs
- XmlIlGenerator.cs
- PropertyGeneratedEventArgs.cs
- WhitespaceRuleReader.cs
- XPathNode.cs