Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- VerificationException.cs
- FlowDocumentView.cs
- Rect.cs
- BoundsDrawingContextWalker.cs
- ControlLocalizer.cs
- PersistenceContext.cs
- ConnectionManagementSection.cs
- ImportStoreException.cs
- WinFormsSecurity.cs
- Triplet.cs
- WebPartCatalogAddVerb.cs
- AsymmetricAlgorithm.cs
- ConfigsHelper.cs
- ByeOperationAsyncResult.cs
- CompilationRelaxations.cs
- ServiceDocument.cs
- ValidatorCollection.cs
- RectangleF.cs
- AlignmentYValidation.cs
- AlternateView.cs
- KeyProperty.cs
- DependencyObjectCodeDomSerializer.cs
- ClientType.cs
- TraceInternal.cs
- ComboBoxItem.cs
- ProtocolsConfiguration.cs
- securitycriticaldataClass.cs
- XmlnsDefinitionAttribute.cs
- PermissionToken.cs
- DbInsertCommandTree.cs
- ToolBarOverflowPanel.cs
- AstTree.cs
- FileVersionInfo.cs
- TraceProvider.cs
- SystemInfo.cs
- xmlformatgeneratorstatics.cs
- BrowsableAttribute.cs
- TextLineBreak.cs
- FixedPageProcessor.cs
- ListViewDataItem.cs
- SqlFunctionAttribute.cs
- FormClosedEvent.cs
- ToolStripSystemRenderer.cs
- SqlCrossApplyToCrossJoin.cs
- storepermission.cs
- StringConverter.cs
- DataFieldEditor.cs
- arabicshape.cs
- DrawingVisualDrawingContext.cs
- AnimationTimeline.cs
- ByteStack.cs
- JsonServiceDocumentSerializer.cs
- DataGridItem.cs
- Table.cs
- DataContractSerializerOperationGenerator.cs
- RegisteredDisposeScript.cs
- SafeCoTaskMem.cs
- SafeNativeMethods.cs
- Attributes.cs
- control.ime.cs
- StylusPointPropertyInfoDefaults.cs
- BinaryMethodMessage.cs
- AutoResetEvent.cs
- Mappings.cs
- SiteMapSection.cs
- ExecutionPropertyManager.cs
- NumberFunctions.cs
- FileInfo.cs
- AppDomainUnloadedException.cs
- CompositeFontFamily.cs
- PropertyGridView.cs
- ToolStripItemCollection.cs
- RuntimeConfigurationRecord.cs
- ToolStripItemDataObject.cs
- NavigationHelper.cs
- TextHintingModeValidation.cs
- ThreadPool.cs
- DbReferenceCollection.cs
- HtmlInputCheckBox.cs
- CreateDataSourceDialog.cs
- X509CertificateRecipientServiceCredential.cs
- TimeSpanHelper.cs
- FilterableAttribute.cs
- ListViewTableRow.cs
- MarkupCompilePass2.cs
- MetabaseServerConfig.cs
- UpdatePanelTriggerCollection.cs
- OrderByLifter.cs
- BitmapFrameDecode.cs
- ListViewItem.cs
- ArithmeticException.cs
- StateRuntime.cs
- ZipIOCentralDirectoryBlock.cs
- Rules.cs
- Stackframe.cs
- XhtmlConformanceSection.cs
- ResourcePart.cs
- RepeaterItemCollection.cs
- CodeAttachEventStatement.cs
- WorkflowItemsPresenter.cs