Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- TransactionFlowOption.cs
- ProxyWebPartConnectionCollection.cs
- regiisutil.cs
- CommandValueSerializer.cs
- DeploymentSectionCache.cs
- QilCloneVisitor.cs
- RuleSetCollection.cs
- ScrollViewer.cs
- DefaultValueMapping.cs
- PerfCounterSection.cs
- DomainConstraint.cs
- RuntimeHelpers.cs
- FormsAuthenticationUser.cs
- DateTimeValueSerializer.cs
- ServicesUtilities.cs
- CustomValidator.cs
- CustomExpression.cs
- ConnectorDragDropGlyph.cs
- RoleManagerModule.cs
- ScaleTransform.cs
- MachineKeySection.cs
- WindowsContainer.cs
- QuaternionRotation3D.cs
- ListBox.cs
- DefaultHttpHandler.cs
- SHA1Managed.cs
- RtfControlWordInfo.cs
- CurrentTimeZone.cs
- GridViewDeleteEventArgs.cs
- CorePropertiesFilter.cs
- AstNode.cs
- AuthStoreRoleProvider.cs
- BamlMapTable.cs
- _ConnectStream.cs
- SqlCommandSet.cs
- SpotLight.cs
- EnumConverter.cs
- FlatButtonAppearance.cs
- TableProviderWrapper.cs
- Clipboard.cs
- DataObjectSettingDataEventArgs.cs
- DataStreams.cs
- SafeHandles.cs
- Zone.cs
- Process.cs
- StaticSiteMapProvider.cs
- AccessorTable.cs
- UnmanagedMemoryStream.cs
- LazyTextWriterCreator.cs
- OutputCacheModule.cs
- PrinterResolution.cs
- ScriptingSectionGroup.cs
- EdmMember.cs
- ScriptReference.cs
- TargetConverter.cs
- DiscreteKeyFrames.cs
- ScriptManagerProxy.cs
- CallbackHandler.cs
- CorrelationService.cs
- MarshalByValueComponent.cs
- StaticDataManager.cs
- Calendar.cs
- DebuggerService.cs
- BooleanAnimationUsingKeyFrames.cs
- Context.cs
- IdentityHolder.cs
- CodeValidator.cs
- PeerCustomResolverElement.cs
- HelpKeywordAttribute.cs
- ScriptControlDescriptor.cs
- DefaultProxySection.cs
- CharAnimationUsingKeyFrames.cs
- ThemeableAttribute.cs
- Byte.cs
- StructuralObject.cs
- OrderedHashRepartitionStream.cs
- OrderedHashRepartitionStream.cs
- DataFieldEditor.cs
- BinaryParser.cs
- FormsAuthenticationEventArgs.cs
- HttpCookieCollection.cs
- AssemblyInfo.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- ConnectivityStatus.cs
- DataGridViewImageCell.cs
- DeclarationUpdate.cs
- AnimatedTypeHelpers.cs
- StylusButton.cs
- ReadContentAsBinaryHelper.cs
- RadioButtonBaseAdapter.cs
- MediaContextNotificationWindow.cs
- WorkflowWebHostingModule.cs
- TextServicesProperty.cs
- SafeLocalMemHandle.cs
- MenuItemCollection.cs
- FormattedText.cs
- XhtmlConformanceSection.cs
- ObjectSet.cs
- Tracer.cs
- ActionFrame.cs