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
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ContainerParagraph.cs
- XmlNodeComparer.cs
- DbParameterCollectionHelper.cs
- WinEventQueueItem.cs
- StaticFileHandler.cs
- RegisteredDisposeScript.cs
- ChangeTracker.cs
- FieldTemplateFactory.cs
- SelectionGlyph.cs
- TextChange.cs
- ImageCodecInfoPrivate.cs
- WSDualHttpSecurity.cs
- SequentialUshortCollection.cs
- StrokeFIndices.cs
- DefaultShape.cs
- CustomErrorsSectionWrapper.cs
- TextDocumentView.cs
- SafeFileMappingHandle.cs
- validationstate.cs
- SelectedDatesCollection.cs
- UpdateEventArgs.cs
- FilteredXmlReader.cs
- TimeSpan.cs
- Permission.cs
- PeerCollaborationPermission.cs
- Color.cs
- UnsafeNativeMethodsTablet.cs
- WebServiceFaultDesigner.cs
- FocusTracker.cs
- HttpChannelBindingToken.cs
- ValidationError.cs
- FaultContractAttribute.cs
- FontCollection.cs
- BamlTreeUpdater.cs
- XmlQueryOutput.cs
- XsdCachingReader.cs
- CardSpacePolicyElement.cs
- ActionMessageFilter.cs
- GlyphTypeface.cs
- MappingMetadataHelper.cs
- AddingNewEventArgs.cs
- HGlobalSafeHandle.cs
- HashAlgorithm.cs
- InternalsVisibleToAttribute.cs
- StickyNoteHelper.cs
- ChannelManagerService.cs
- NonClientArea.cs
- JsonSerializer.cs
- UrlMappingCollection.cs
- Win32Native.cs
- Point3D.cs
- DbgUtil.cs
- ConsoleKeyInfo.cs
- ContentPlaceHolder.cs
- ListViewGroup.cs
- SelectionGlyph.cs
- TabControlAutomationPeer.cs
- COM2IDispatchConverter.cs
- __Error.cs
- XmlNodeReader.cs
- FrameworkObject.cs
- OuterGlowBitmapEffect.cs
- ExpressionVisitor.cs
- SelectedGridItemChangedEvent.cs
- VirtualPath.cs
- FixedTextContainer.cs
- OdbcFactory.cs
- PointAnimationBase.cs
- StrokeCollectionDefaultValueFactory.cs
- CqlBlock.cs
- SafeNativeMethods.cs
- CompoundFileDeflateTransform.cs
- TextRangeSerialization.cs
- XamlTreeBuilderBamlRecordWriter.cs
- DataGridViewCellMouseEventArgs.cs
- IncomingWebRequestContext.cs
- XmlSchemaSimpleTypeList.cs
- WebPartConnectionsConnectVerb.cs
- LockCookie.cs
- LocalizationComments.cs
- MimePart.cs
- DataTableReaderListener.cs
- ISAPIApplicationHost.cs
- DataGridView.cs
- WebHttpElement.cs
- OdbcConnectionHandle.cs
- ShortcutKeysEditor.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- ObjectListDataBindEventArgs.cs
- Win32Native.cs
- CopyNamespacesAction.cs
- ServicePoint.cs
- WindowsFormsHelpers.cs
- MatrixUtil.cs
- ExtractedStateEntry.cs
- DesignDataSource.cs
- ProcessHost.cs
- MenuItemStyle.cs
- SuppressMergeCheckAttribute.cs
- FixedTextSelectionProcessor.cs