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
- MSAAEventDispatcher.cs
- RuntimeCompatibilityAttribute.cs
- XPathException.cs
- DateTimeConverter.cs
- ThicknessAnimation.cs
- BindingNavigator.cs
- SystemIPGlobalStatistics.cs
- XPathNodePointer.cs
- ObjectAnimationUsingKeyFrames.cs
- CustomWebEventKey.cs
- StreamSecurityUpgradeAcceptorAsyncResult.cs
- BrowserDefinitionCollection.cs
- UniqueIdentifierService.cs
- TextSelectionProcessor.cs
- MethodBody.cs
- QuaternionRotation3D.cs
- SpeechSeg.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- Grant.cs
- BufferBuilder.cs
- InputElement.cs
- Keyboard.cs
- XmlText.cs
- WebServiceData.cs
- ItemsPresenter.cs
- FormatPage.cs
- DependencyPropertyKind.cs
- DataSetUtil.cs
- DataGridToolTip.cs
- SchemaConstraints.cs
- EtwProvider.cs
- HttpHandlerAction.cs
- ColorMap.cs
- BatchServiceHost.cs
- ImageListStreamer.cs
- MultiView.cs
- TemplateParser.cs
- ThreadWorkerController.cs
- XmlExpressionDumper.cs
- AsymmetricSignatureDeformatter.cs
- GenericIdentity.cs
- StateDesigner.Helpers.cs
- GridViewUpdateEventArgs.cs
- SmiRecordBuffer.cs
- ServiceDeploymentInfo.cs
- Solver.cs
- XPathQilFactory.cs
- ReplyChannelBinder.cs
- ParameterCollection.cs
- TransformValueSerializer.cs
- HttpCookiesSection.cs
- OutputCacheModule.cs
- MenuEventArgs.cs
- TextServicesDisplayAttributePropertyRanges.cs
- DefaultEventAttribute.cs
- UserControl.cs
- DrawingGroupDrawingContext.cs
- EmbeddedMailObject.cs
- ActivityUtilities.cs
- connectionpool.cs
- InvariantComparer.cs
- DataBindingExpressionBuilder.cs
- DocobjHost.cs
- PerformanceCounterLib.cs
- XsltLibrary.cs
- DesignerSerializerAttribute.cs
- TextTreeTextElementNode.cs
- SrgsGrammar.cs
- CacheAxisQuery.cs
- AssemblySettingAttributes.cs
- UshortList2.cs
- ScrollViewer.cs
- BitmapEffectInput.cs
- SQlBooleanStorage.cs
- BlurEffect.cs
- ScrollBar.cs
- DashStyle.cs
- WebConfigurationHostFileChange.cs
- CompiledELinqQueryState.cs
- AssemblyResourceLoader.cs
- XmlSchemaIdentityConstraint.cs
- SetIterators.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- HandleRef.cs
- CacheAxisQuery.cs
- ProvidePropertyAttribute.cs
- WebPartMinimizeVerb.cs
- AppDomainAttributes.cs
- MultiPageTextView.cs
- ConfigurationLocationCollection.cs
- PtsPage.cs
- WebPartCatalogCloseVerb.cs
- XmlObjectSerializerReadContextComplexJson.cs
- WebBrowserEvent.cs
- XmlResolver.cs
- Preprocessor.cs
- XmlILStorageConverter.cs
- ComplexBindingPropertiesAttribute.cs
- DmlSqlGenerator.cs
- PeerName.cs