Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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 } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// 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 } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ClientOptions.cs
- CmsInterop.cs
- ScrollViewerAutomationPeer.cs
- ServicePointManager.cs
- UmAlQuraCalendar.cs
- _ContextAwareResult.cs
- FullTextState.cs
- Point4D.cs
- RuleElement.cs
- EntityDataSourceDesigner.cs
- DoubleAnimationUsingPath.cs
- SinglePhaseEnlistment.cs
- TextParentUndoUnit.cs
- QilXmlWriter.cs
- DashStyles.cs
- PageThemeParser.cs
- Graphics.cs
- PrimaryKeyTypeConverter.cs
- WinFormsSecurity.cs
- StylusEditingBehavior.cs
- DetailsViewDeleteEventArgs.cs
- GCHandleCookieTable.cs
- SnapshotChangeTrackingStrategy.cs
- BitConverter.cs
- GotoExpression.cs
- ControlCachePolicy.cs
- CaseInsensitiveHashCodeProvider.cs
- Cursors.cs
- RoleManagerModule.cs
- LayoutEvent.cs
- AssemblyBuilderData.cs
- TrackingProfileManager.cs
- CallId.cs
- WebPartDeleteVerb.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- QilTernary.cs
- ObjectDesignerDataSourceView.cs
- SmiRequestExecutor.cs
- PerformanceCounterManager.cs
- UIElementParaClient.cs
- SerializationObjectManager.cs
- OdbcRowUpdatingEvent.cs
- ScriptBehaviorDescriptor.cs
- OpCopier.cs
- CatalogZoneBase.cs
- KeyedCollection.cs
- DocumentViewerHelper.cs
- LineMetrics.cs
- FileSystemEventArgs.cs
- OverlappedContext.cs
- TerminatorSinks.cs
- HttpResponseHeader.cs
- AsymmetricKeyExchangeFormatter.cs
- XmlQueryType.cs
- BindToObject.cs
- HtmlInputPassword.cs
- Win32.cs
- TrustManager.cs
- ViewManagerAttribute.cs
- TemplateInstanceAttribute.cs
- ButtonPopupAdapter.cs
- ProfileGroupSettings.cs
- XmlUrlResolver.cs
- FontStretch.cs
- UIElementHelper.cs
- Expression.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- RelatedView.cs
- ConnectionStringsExpressionBuilder.cs
- xsdvalidator.cs
- DocumentScope.cs
- DataFormats.cs
- XPathNavigatorReader.cs
- ControlFilterExpression.cs
- DataGridToolTip.cs
- RectangleF.cs
- TaskDesigner.cs
- ExceptionUtil.cs
- PolicyException.cs
- SendActivityValidator.cs
- ConfigurationLocation.cs
- HitTestDrawingContextWalker.cs
- HMACSHA512.cs
- GACIdentityPermission.cs
- Int64Storage.cs
- InvariantComparer.cs
- LocatorManager.cs
- NodeFunctions.cs
- FastEncoder.cs
- CustomError.cs
- DesignerVerbCollection.cs
- HtmlControlAdapter.cs
- ItemContainerGenerator.cs
- XmlNavigatorFilter.cs
- ResourceContainer.cs
- Win32NamedPipes.cs
- SourceSwitch.cs
- CompModSwitches.cs
- TableRowCollection.cs
- ProtectedConfiguration.cs