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
- QueryAccessibilityHelpEvent.cs
- NamespaceInfo.cs
- RadioButton.cs
- DesignerInterfaces.cs
- BitmapCache.cs
- TypeDelegator.cs
- LogicalCallContext.cs
- ReferenceEqualityComparer.cs
- DataGridViewSelectedRowCollection.cs
- OutOfMemoryException.cs
- ForeignConstraint.cs
- TextSegment.cs
- ScheduleChanges.cs
- ReferenceEqualityComparer.cs
- DurableInstanceContextProvider.cs
- PropertyMetadata.cs
- CompoundFileStreamReference.cs
- ArraySegment.cs
- Menu.cs
- UITypeEditor.cs
- Symbol.cs
- ConnectionConsumerAttribute.cs
- ArrangedElement.cs
- ListItemDetailViewAttribute.cs
- PrePostDescendentsWalker.cs
- XmlSchemaAnnotation.cs
- ProviderConnectionPointCollection.cs
- XmlAtomicValue.cs
- RsaSecurityTokenAuthenticator.cs
- SafeBitVector32.cs
- _RequestCacheProtocol.cs
- SqlNodeAnnotation.cs
- RequiredAttributeAttribute.cs
- Rectangle.cs
- ErrorEventArgs.cs
- Size3DConverter.cs
- DefaultTraceListener.cs
- login.cs
- GridViewRowPresenter.cs
- MessageSecurityOverTcp.cs
- MimeTypeAttribute.cs
- OperationBehaviorAttribute.cs
- ObjectHandle.cs
- PageContentAsyncResult.cs
- Int32Storage.cs
- Configuration.cs
- FixedPage.cs
- UrlMapping.cs
- RawAppCommandInputReport.cs
- InstanceDescriptor.cs
- DetailsViewModeEventArgs.cs
- TraceContextEventArgs.cs
- EnumConverter.cs
- DataSourceSelectArguments.cs
- WebRequestModulesSection.cs
- EpmCustomContentSerializer.cs
- DynamicPropertyHolder.cs
- XmlValueConverter.cs
- StateFinalizationDesigner.cs
- XMLSyntaxException.cs
- userdatakeys.cs
- XmlCollation.cs
- ObjectSecurity.cs
- PointAnimationUsingPath.cs
- ButtonPopupAdapter.cs
- __FastResourceComparer.cs
- Internal.cs
- SqlAggregateChecker.cs
- TextProperties.cs
- KeyPressEvent.cs
- DiscoveryClientChannelFactory.cs
- Pen.cs
- SmiConnection.cs
- CodeDefaultValueExpression.cs
- LazyTextWriterCreator.cs
- ComponentChangedEvent.cs
- CfgParser.cs
- XmlConverter.cs
- TargetConverter.cs
- LiteralLink.cs
- SecurityCriticalDataForSet.cs
- LocatorPartList.cs
- SolidColorBrush.cs
- ScriptBehaviorDescriptor.cs
- SHA256CryptoServiceProvider.cs
- CodeGen.cs
- AsyncResult.cs
- ResourceDictionary.cs
- Rect.cs
- HttpResponseWrapper.cs
- SqlFunctionAttribute.cs
- HtmlTextArea.cs
- DataException.cs
- UpdateTracker.cs
- ipaddressinformationcollection.cs
- EdmFunctionAttribute.cs
- OleDbCommand.cs
- TimeZone.cs
- ResXResourceReader.cs
- RadioButtonList.cs