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
- DropShadowEffect.cs
- SectionInformation.cs
- MobileControlsSectionHandler.cs
- MenuAutoFormat.cs
- Win32.cs
- ExpressionConverter.cs
- DecoratedNameAttribute.cs
- CancellationToken.cs
- Filter.cs
- ThumbAutomationPeer.cs
- SqlBuilder.cs
- RenderCapability.cs
- SponsorHelper.cs
- Convert.cs
- ThreadStartException.cs
- OAVariantLib.cs
- DataControlCommands.cs
- DataGridViewColumnHeaderCell.cs
- _Connection.cs
- SystemIPv4InterfaceProperties.cs
- Memoizer.cs
- _AuthenticationState.cs
- ToolStripItemRenderEventArgs.cs
- XmlTypeMapping.cs
- SystemNetHelpers.cs
- WebWorkflowRole.cs
- SafeEventLogWriteHandle.cs
- ViewValidator.cs
- UndoManager.cs
- MultiDataTrigger.cs
- InputBinding.cs
- SemanticResultKey.cs
- ItemsPresenter.cs
- WebPartDisplayModeCancelEventArgs.cs
- CodeLinePragma.cs
- SplineQuaternionKeyFrame.cs
- MarkupCompilePass1.cs
- MdImport.cs
- WebPartZoneBase.cs
- ToolStripMenuItem.cs
- LogEntrySerializer.cs
- Symbol.cs
- FileLoadException.cs
- Int16AnimationUsingKeyFrames.cs
- FileDialogPermission.cs
- GenericEnumerator.cs
- Flowchart.cs
- PrincipalPermission.cs
- EntityWrapper.cs
- TextRunCacheImp.cs
- DesignerLoader.cs
- TraceProvider.cs
- RecognizedPhrase.cs
- XmlRootAttribute.cs
- SqlDataSourceConfigureFilterForm.cs
- HtmlEmptyTagControlBuilder.cs
- ScriptIgnoreAttribute.cs
- XmlReturnReader.cs
- RegexInterpreter.cs
- StrokeNodeEnumerator.cs
- QualifiedId.cs
- PropertyGeneratedEventArgs.cs
- UInt64Converter.cs
- CatalogZoneBase.cs
- ExtendedProtectionPolicy.cs
- ToolStripSplitButton.cs
- ValidatorCompatibilityHelper.cs
- ItemsChangedEventArgs.cs
- _FtpDataStream.cs
- BitmapScalingModeValidation.cs
- ListCommandEventArgs.cs
- AbsoluteQuery.cs
- TypefaceMetricsCache.cs
- Rijndael.cs
- RankException.cs
- PropertyEntry.cs
- ModelItemImpl.cs
- Rfc4050KeyFormatter.cs
- EventItfInfo.cs
- ExternalException.cs
- UserNameServiceElement.cs
- ExitEventArgs.cs
- DesignerActionItem.cs
- StreamUpgradeAcceptor.cs
- XmlWhitespace.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- ListItemConverter.cs
- ProviderIncompatibleException.cs
- EditorPart.cs
- SendActivity.cs
- GridView.cs
- MarkupCompilePass2.cs
- LongTypeConverter.cs
- PathSegmentCollection.cs
- NextPreviousPagerField.cs
- PassportAuthenticationEventArgs.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- TransactionException.cs
- ComplexObject.cs
- BigInt.cs