Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / 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. //------------------------------------------------------------------------------ //// 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
![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
- NodeLabelEditEvent.cs
- HttpContextServiceHost.cs
- NotifyInputEventArgs.cs
- MailDefinition.cs
- CompiledXpathExpr.cs
- Events.cs
- Fonts.cs
- InputScopeAttribute.cs
- XmlDataFileEditor.cs
- SharedPersonalizationStateInfo.cs
- PointHitTestResult.cs
- RegexCode.cs
- UnsafeNativeMethodsPenimc.cs
- Pair.cs
- MSG.cs
- DataObjectEventArgs.cs
- EditorOptionAttribute.cs
- SemanticKeyElement.cs
- SchemaTypeEmitter.cs
- Vector3DCollectionConverter.cs
- XmlBufferedByteStreamReader.cs
- SQLInt64Storage.cs
- ConsumerConnectionPoint.cs
- _SingleItemRequestCache.cs
- TransformBlockRequest.cs
- DoubleLinkList.cs
- DescendentsWalker.cs
- AssertFilter.cs
- Point4DValueSerializer.cs
- CultureSpecificCharacterBufferRange.cs
- StringValidator.cs
- ContainerSelectorGlyph.cs
- PageStatePersister.cs
- ValidatingCollection.cs
- _AcceptOverlappedAsyncResult.cs
- XPathChildIterator.cs
- LogFlushAsyncResult.cs
- WindowsButton.cs
- DynamicControl.cs
- localization.cs
- ExcludePathInfo.cs
- MultipleViewProviderWrapper.cs
- EventLogWatcher.cs
- BufferedOutputStream.cs
- EpmContentSerializerBase.cs
- ComponentCache.cs
- IPEndPointCollection.cs
- OutputCacheEntry.cs
- XPathScanner.cs
- InfoCardBaseException.cs
- PropertyReferenceExtension.cs
- ListItemConverter.cs
- ExtentKey.cs
- PolicyImporterElement.cs
- OptimalTextSource.cs
- ListViewItem.cs
- CollectionView.cs
- EntityDesignerBuildProvider.cs
- WebConfigurationManager.cs
- ToolStripSettings.cs
- SystemUdpStatistics.cs
- XsdDateTime.cs
- XPathNodeInfoAtom.cs
- NeutralResourcesLanguageAttribute.cs
- ContextMenu.cs
- GcHandle.cs
- Bits.cs
- TrustManagerMoreInformation.cs
- IDispatchConstantAttribute.cs
- ThumbAutomationPeer.cs
- dataprotectionpermission.cs
- MasterPageParser.cs
- MatrixCamera.cs
- MissingManifestResourceException.cs
- Transform3D.cs
- XmlSerializationGeneratedCode.cs
- ProfilePropertyMetadata.cs
- DetailsViewDeleteEventArgs.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- DataGridViewComboBoxCell.cs
- WebPartEditorCancelVerb.cs
- SqlClientWrapperSmiStreamChars.cs
- AuthorizationRule.cs
- BeginEvent.cs
- wmiprovider.cs
- SparseMemoryStream.cs
- NamespaceEmitter.cs
- DataGridViewRow.cs
- AlternationConverter.cs
- DataGridViewImageCell.cs
- unsafeIndexingFilterStream.cs
- XMLSchema.cs
- VersionedStreamOwner.cs
- DateTimeValueSerializerContext.cs
- ManifestSignatureInformation.cs
- PropertyEmitter.cs
- ColorMap.cs
- WebHttpElement.cs
- BlockingCollection.cs
- RegexNode.cs