Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Util / DoubleLinkListEnumerator.cs / 1305376 / 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; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// 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; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- InternalTypeHelper.cs
- CreatingCookieEventArgs.cs
- UserControlParser.cs
- AttributeProviderAttribute.cs
- DelegatingHeader.cs
- StylusButton.cs
- FramingChannels.cs
- XmlSchemaElement.cs
- COM2ComponentEditor.cs
- _ProxyRegBlob.cs
- PartEditor.cs
- NumberFormatInfo.cs
- iisPickupDirectory.cs
- HttpVersion.cs
- QueueSurrogate.cs
- Converter.cs
- _FtpControlStream.cs
- WarningException.cs
- CodeSnippetTypeMember.cs
- MenuItemBinding.cs
- DataKeyArray.cs
- Memoizer.cs
- AttributeExtensions.cs
- View.cs
- DataServiceConfiguration.cs
- regiisutil.cs
- OnOperation.cs
- ReferenceConverter.cs
- KerberosSecurityTokenAuthenticator.cs
- GroupLabel.cs
- ConditionedDesigner.cs
- FixedSOMContainer.cs
- WebPartRestoreVerb.cs
- PeerNameRecord.cs
- CommonProperties.cs
- ComponentResourceKeyConverter.cs
- GridSplitterAutomationPeer.cs
- RangeBase.cs
- ObjectListCommandsPage.cs
- XsltCompileContext.cs
- COM2Properties.cs
- RequestCacheEntry.cs
- GlobalizationAssembly.cs
- ProgressBar.cs
- IntellisenseTextBox.cs
- GradientStop.cs
- httpserverutility.cs
- HWStack.cs
- HelloOperation11AsyncResult.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- Grid.cs
- CaretElement.cs
- BamlRecords.cs
- MimeBasePart.cs
- PageParserFilter.cs
- VisualStyleInformation.cs
- UrlPropertyAttribute.cs
- XDeferredAxisSource.cs
- DataGridCellsPanel.cs
- RawMouseInputReport.cs
- ClientConfigurationHost.cs
- TabRenderer.cs
- CellIdBoolean.cs
- ComponentEditorPage.cs
- DataBindEngine.cs
- CodeEntryPointMethod.cs
- PopupEventArgs.cs
- CheckoutException.cs
- CssTextWriter.cs
- BoundField.cs
- BitmapSource.cs
- BinHexEncoding.cs
- processwaithandle.cs
- _DisconnectOverlappedAsyncResult.cs
- GenericAuthenticationEventArgs.cs
- TransactionProtocol.cs
- DragDropHelper.cs
- TextServicesProperty.cs
- OdbcConnectionHandle.cs
- Mutex.cs
- TransactionBridgeSection.cs
- PreloadedPackages.cs
- StickyNoteContentControl.cs
- ProfileProvider.cs
- panel.cs
- WinFormsComponentEditor.cs
- CheckBoxPopupAdapter.cs
- Point3DCollection.cs
- ValueTable.cs
- _BufferOffsetSize.cs
- ParentUndoUnit.cs
- DiscreteKeyFrames.cs
- RenderingEventArgs.cs
- TextElementEnumerator.cs
- Point4D.cs
- SqlUnionizer.cs
- VersionValidator.cs
- WebPart.cs
- SignatureDescription.cs
- CombinedGeometry.cs