Code:
/ FX-1434 / FX-1434 / 1.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
- DataGridViewRowCollection.cs
- BoundPropertyEntry.cs
- Guid.cs
- HwndKeyboardInputProvider.cs
- RegularExpressionValidator.cs
- TCPClient.cs
- newinstructionaction.cs
- SessionStateSection.cs
- PreviewPrintController.cs
- DefaultValidator.cs
- listitem.cs
- Grant.cs
- _Rfc2616CacheValidators.cs
- BlockCollection.cs
- IconBitmapDecoder.cs
- TableCell.cs
- EdgeProfileValidation.cs
- AutomationAttributeInfo.cs
- AsyncPostBackErrorEventArgs.cs
- IChannel.cs
- DataGridViewColumnCollectionEditor.cs
- LabelLiteral.cs
- UnsafeNativeMethodsPenimc.cs
- __Filters.cs
- RootBuilder.cs
- WebPartCatalogCloseVerb.cs
- UnsafeNativeMethods.cs
- SymbolEqualComparer.cs
- DefaultMemberAttribute.cs
- UIPropertyMetadata.cs
- MdiWindowListStrip.cs
- CompiledQueryCacheEntry.cs
- WindowPattern.cs
- HttpCachePolicyElement.cs
- unsafenativemethodsother.cs
- FileDialogCustomPlace.cs
- SelectionEditingBehavior.cs
- cookiecontainer.cs
- SiteOfOriginPart.cs
- ExchangeUtilities.cs
- SessionEndedEventArgs.cs
- RenderDataDrawingContext.cs
- Resources.Designer.cs
- HitTestFilterBehavior.cs
- RadioButtonPopupAdapter.cs
- PointCollection.cs
- _ChunkParse.cs
- ButtonBaseAutomationPeer.cs
- ExtentKey.cs
- PersistenceTypeAttribute.cs
- BypassElement.cs
- ParameterToken.cs
- PlainXmlSerializer.cs
- HtmlElement.cs
- DataService.cs
- SqlFileStream.cs
- InternalBufferOverflowException.cs
- ApplicationProxyInternal.cs
- OperatingSystemVersionCheck.cs
- ColorAnimationBase.cs
- SpeakProgressEventArgs.cs
- TextEvent.cs
- ScrollChrome.cs
- WindowsFont.cs
- LinqDataSourceInsertEventArgs.cs
- ExpressionWriter.cs
- Rect3D.cs
- ElementAction.cs
- FreezableCollection.cs
- WorkflowPersistenceService.cs
- NavigationPropertyEmitter.cs
- CharacterString.cs
- XmlQueryTypeFactory.cs
- InvalidAsynchronousStateException.cs
- Opcode.cs
- FileDialog_Vista_Interop.cs
- ToolStripPanelSelectionBehavior.cs
- HtmlInputRadioButton.cs
- ContentElementAutomationPeer.cs
- NativeRightsManagementAPIsStructures.cs
- VerticalAlignConverter.cs
- AnimationStorage.cs
- TimeIntervalCollection.cs
- FieldToken.cs
- DataGridRowsPresenter.cs
- RelativeSource.cs
- serverconfig.cs
- SqlSelectStatement.cs
- DrawingBrush.cs
- ClientSettings.cs
- WebPartMenu.cs
- UTF32Encoding.cs
- ExecutionEngineException.cs
- FormatException.cs
- BindingContext.cs
- MimeMultiPart.cs
- AbsoluteQuery.cs
- MailDefinition.cs
- TakeOrSkipWhileQueryOperator.cs
- AssemblyFilter.cs