Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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. // //----------------------------------------------------------------------------- /* * 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DbConnectionClosed.cs
- CacheEntry.cs
- ExtendedProperty.cs
- SafeMarshalContext.cs
- _HeaderInfoTable.cs
- Native.cs
- OleDbCommandBuilder.cs
- PermissionListSet.cs
- DataTableReaderListener.cs
- XmlChildNodes.cs
- ServerIdentity.cs
- safex509handles.cs
- ForceCopyBuildProvider.cs
- BufferBuilder.cs
- PersonalizationProviderHelper.cs
- Path.cs
- FusionWrap.cs
- BamlLocalizer.cs
- SoapMessage.cs
- WindowsScrollBarBits.cs
- PriorityQueue.cs
- ConfigurationErrorsException.cs
- SelectionItemPattern.cs
- TableTextElementCollectionInternal.cs
- XmlElement.cs
- InvokeMemberBinder.cs
- SqlDataAdapter.cs
- ObjectManager.cs
- QuaternionKeyFrameCollection.cs
- Part.cs
- ElementAction.cs
- ApplicationSecurityManager.cs
- FileAuthorizationModule.cs
- DataGridColumnCollection.cs
- WebServiceData.cs
- KoreanLunisolarCalendar.cs
- BounceEase.cs
- ReadOnlyHierarchicalDataSourceView.cs
- CodeAttributeArgumentCollection.cs
- SourceItem.cs
- SafeCoTaskMem.cs
- FilteredDataSetHelper.cs
- RectangleGeometry.cs
- TrackingRecord.cs
- OAVariantLib.cs
- Perspective.cs
- IIS7UserPrincipal.cs
- FileUtil.cs
- DivideByZeroException.cs
- CompilerErrorCollection.cs
- ValueChangedEventManager.cs
- CompoundFileReference.cs
- TransformerInfo.cs
- DebuggerAttributes.cs
- NavigationFailedEventArgs.cs
- GetRecipientListRequest.cs
- DocumentViewerAutomationPeer.cs
- XmlCollation.cs
- XmlSchemaObject.cs
- ModelService.cs
- iisPickupDirectory.cs
- MetabaseServerConfig.cs
- AttributeAction.cs
- SingleSelectRootGridEntry.cs
- VideoDrawing.cs
- AstNode.cs
- CustomError.cs
- Rect.cs
- ProjectionPath.cs
- InkCanvasSelection.cs
- ValidationHelper.cs
- UnmanagedHandle.cs
- _NetworkingPerfCounters.cs
- TreeNodeClickEventArgs.cs
- DeploymentExceptionMapper.cs
- RenamedEventArgs.cs
- ParameterElement.cs
- NetDataContractSerializer.cs
- XNodeNavigator.cs
- SafeHandles.cs
- DbCommandDefinition.cs
- DataKeyCollection.cs
- InvalidAsynchronousStateException.cs
- VirtualPathProvider.cs
- ItemType.cs
- Slider.cs
- HtmlInputControl.cs
- OrCondition.cs
- TemplateKeyConverter.cs
- XPathEmptyIterator.cs
- MetadataImporter.cs
- Expander.cs
- ServicesExceptionNotHandledEventArgs.cs
- XmlDataCollection.cs
- ColumnResizeAdorner.cs
- DebuggerAttributes.cs
- WsdlServiceChannelBuilder.cs
- DataBindingCollectionConverter.cs
- SystemBrushes.cs
- SystemIPGlobalProperties.cs