Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DecimalAnimation.cs
- DetailsViewPagerRow.cs
- EntityStoreSchemaGenerator.cs
- EventManager.cs
- EmptyEnumerator.cs
- DynamicValidatorEventArgs.cs
- TextBoxDesigner.cs
- OleDbException.cs
- XmlJsonWriter.cs
- SystemIcmpV4Statistics.cs
- EdmToObjectNamespaceMap.cs
- LayoutEvent.cs
- SmtpAuthenticationManager.cs
- PointConverter.cs
- XmlNodeChangedEventArgs.cs
- SerTrace.cs
- GridViewSortEventArgs.cs
- OracleRowUpdatedEventArgs.cs
- PointCollectionConverter.cs
- SynchronousReceiveBehavior.cs
- RIPEMD160.cs
- NetStream.cs
- RelationshipManager.cs
- ElasticEase.cs
- OdbcError.cs
- CustomValidator.cs
- IsolationInterop.cs
- SafeUserTokenHandle.cs
- ScrollChrome.cs
- StylusButtonCollection.cs
- NotImplementedException.cs
- Instrumentation.cs
- StaticExtension.cs
- Int32CAMarshaler.cs
- TableLayoutSettingsTypeConverter.cs
- NTAccount.cs
- Deserializer.cs
- TargetControlTypeCache.cs
- CustomErrorCollection.cs
- EUCJPEncoding.cs
- Double.cs
- MimeMapping.cs
- CookieHandler.cs
- ModelPropertyImpl.cs
- IsolatedStorage.cs
- FunctionImportMapping.cs
- GridViewDeleteEventArgs.cs
- ComponentDispatcherThread.cs
- RightsManagementEncryptionTransform.cs
- JsonGlobals.cs
- AdornedElementPlaceholder.cs
- FixedPageAutomationPeer.cs
- ConstNode.cs
- BufferedGraphicsContext.cs
- _DomainName.cs
- SaveFileDialog.cs
- AssociationSetMetadata.cs
- SQLInt32.cs
- ProgramPublisher.cs
- FederatedMessageSecurityOverHttp.cs
- XmlElement.cs
- Comparer.cs
- StorageEntityTypeMapping.cs
- WebPartVerb.cs
- PathNode.cs
- WindowInteractionStateTracker.cs
- AddInController.cs
- ListParaClient.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- IItemContainerGenerator.cs
- EdmToObjectNamespaceMap.cs
- FixedSOMTableRow.cs
- ToolStripItemImageRenderEventArgs.cs
- MenuRendererStandards.cs
- ConfigXmlWhitespace.cs
- AppDomainManager.cs
- basecomparevalidator.cs
- MaterialGroup.cs
- PageCache.cs
- DefaultTextStore.cs
- PingReply.cs
- EnumerableRowCollectionExtensions.cs
- TreeNodeCollectionEditorDialog.cs
- NativeMethodsOther.cs
- ItemCheckedEvent.cs
- EntityTransaction.cs
- HostedHttpRequestAsyncResult.cs
- TreeViewImageGenerator.cs
- LogExtent.cs
- AdRotator.cs
- EncryptedPackageFilter.cs
- GraphicsState.cs
- EntryWrittenEventArgs.cs
- SecurityUtils.cs
- WebPartDisplayModeEventArgs.cs
- AnnouncementClient.cs
- PlatformCulture.cs
- InvalidBodyAccessException.cs
- TextSelectionHighlightLayer.cs
- panel.cs