Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- ScaleTransform.cs
- SectionRecord.cs
- FlowPosition.cs
- RuntimeEnvironment.cs
- PeerNameRecord.cs
- AuthStoreRoleProvider.cs
- InvokeMethodActivityDesigner.cs
- WorkflowControlEndpoint.cs
- TickBar.cs
- ItemChangedEventArgs.cs
- NegationPusher.cs
- TextTreeFixupNode.cs
- EndpointDiscoveryElement.cs
- LockedAssemblyCache.cs
- PathSegment.cs
- ValidatorCompatibilityHelper.cs
- CornerRadius.cs
- Root.cs
- SubqueryRules.cs
- ProviderSettingsCollection.cs
- HttpCacheParams.cs
- Constraint.cs
- WpfPayload.cs
- ResourceKey.cs
- ScalarOps.cs
- RawMouseInputReport.cs
- TextBoxAutoCompleteSourceConverter.cs
- UiaCoreProviderApi.cs
- PlatformNotSupportedException.cs
- NameValuePair.cs
- Model3D.cs
- SqlConnectionPoolProviderInfo.cs
- KeyFrames.cs
- ObjectDataSourceFilteringEventArgs.cs
- SoapUnknownHeader.cs
- SupportingTokenDuplexChannel.cs
- HyperLinkStyle.cs
- RepeaterItemEventArgs.cs
- ParsedAttributeCollection.cs
- HtmlImage.cs
- DataViewSetting.cs
- SystemTcpConnection.cs
- DataObjectMethodAttribute.cs
- SingleStorage.cs
- ContravarianceAdapter.cs
- LoginView.cs
- HttpResponse.cs
- Delegate.cs
- AppDomainProtocolHandler.cs
- RowUpdatedEventArgs.cs
- Update.cs
- ManagementEventWatcher.cs
- TimerElapsedEvenArgs.cs
- DictionaryBase.cs
- __Error.cs
- HttpServerUtilityBase.cs
- TypeConverter.cs
- BaseCollection.cs
- AssemblyFilter.cs
- TextEmbeddedObject.cs
- CustomErrorsSection.cs
- LineMetrics.cs
- EditCommandColumn.cs
- OleDbConnection.cs
- SafeBitVector32.cs
- ContextMenuAutomationPeer.cs
- CompiledRegexRunner.cs
- columnmapkeybuilder.cs
- PersonalizationStateInfoCollection.cs
- ClientTargetCollection.cs
- WebHttpSecurity.cs
- GuidelineSet.cs
- TextRunProperties.cs
- Menu.cs
- TextParagraph.cs
- BitmapEffectInputData.cs
- util.cs
- FlowDocumentView.cs
- ColorConvertedBitmapExtension.cs
- Query.cs
- BypassElementCollection.cs
- CodeDomDecompiler.cs
- XPathNode.cs
- RadialGradientBrush.cs
- WindowsSlider.cs
- FontStyleConverter.cs
- WindowsButton.cs
- CacheOutputQuery.cs
- MarkupObject.cs
- _OSSOCK.cs
- ProxyWebPartManager.cs
- IdentifierCollection.cs
- LineGeometry.cs
- NegationPusher.cs
- BitStack.cs
- SimpleApplicationHost.cs
- SQLDecimal.cs
- AuthenticatedStream.cs
- SpeechSynthesizer.cs
- VirtualPathData.cs