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
- ForEachDesigner.xaml.cs
- StringValidatorAttribute.cs
- EncodingNLS.cs
- XmlSchemaInclude.cs
- Int16.cs
- TextDecorationCollectionConverter.cs
- glyphs.cs
- CircleHotSpot.cs
- ListBase.cs
- DSASignatureFormatter.cs
- CompilerInfo.cs
- EncodedStreamFactory.cs
- Convert.cs
- Transform3DGroup.cs
- SQLBytes.cs
- TCPListener.cs
- InternalBase.cs
- WebPartDescriptionCollection.cs
- EntityWrapper.cs
- TagMapCollection.cs
- CommandBinding.cs
- DependencyProperty.cs
- ObjectAnimationUsingKeyFrames.cs
- FormsAuthenticationUserCollection.cs
- FacetChecker.cs
- MessageBox.cs
- RadioButtonRenderer.cs
- SqlDataSourceFilteringEventArgs.cs
- _Events.cs
- ButtonAutomationPeer.cs
- DataGridLengthConverter.cs
- EmbeddedMailObjectsCollection.cs
- RecommendedAsConfigurableAttribute.cs
- MimeParameterWriter.cs
- ContourSegment.cs
- StyleCollection.cs
- SrgsElement.cs
- ToolStripLocationCancelEventArgs.cs
- XmlDigitalSignatureProcessor.cs
- ContentHostHelper.cs
- Brush.cs
- HostDesigntimeLicenseContext.cs
- WindowsListViewGroupHelper.cs
- BulletChrome.cs
- TypeGeneratedEventArgs.cs
- CompressedStack.cs
- TextContainerChangeEventArgs.cs
- XPathDocument.cs
- StringHandle.cs
- MetadataReference.cs
- StreamReader.cs
- DataGridItem.cs
- TreeViewItem.cs
- InternalRelationshipCollection.cs
- StatusBarAutomationPeer.cs
- HuffCodec.cs
- Crc32Helper.cs
- HtmlInputCheckBox.cs
- RewritingPass.cs
- XmlCustomFormatter.cs
- RelationshipManager.cs
- ClientSettingsStore.cs
- COM2Properties.cs
- TextEditorTyping.cs
- JumpPath.cs
- StringUtil.cs
- GenericWebPart.cs
- VirtualDirectoryMappingCollection.cs
- PeerUnsafeNativeCryptMethods.cs
- DESCryptoServiceProvider.cs
- ConnectionPoolManager.cs
- SrgsSemanticInterpretationTag.cs
- XmlLanguage.cs
- EdmProviderManifest.cs
- GeneratedContractType.cs
- MethodImplAttribute.cs
- DynamicDiscoveryDocument.cs
- GatewayIPAddressInformationCollection.cs
- EntityContainerEmitter.cs
- SubtreeProcessor.cs
- CategoryAttribute.cs
- ToolStripContentPanelDesigner.cs
- HttpHandlersSection.cs
- TransportContext.cs
- List.cs
- WinEventHandler.cs
- HttpApplicationFactory.cs
- CodeAttributeDeclarationCollection.cs
- Misc.cs
- RotateTransform.cs
- DictionaryEntry.cs
- LinqMaximalSubtreeNominator.cs
- Point.cs
- GradientStop.cs
- PnrpPermission.cs
- VectorKeyFrameCollection.cs
- TextBoxDesigner.cs
- NameTable.cs
- XmlElementAttribute.cs
- SRGSCompiler.cs