Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Util / DoubleLinkListEnumerator.cs / 1305376 / 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; } } } // 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; } } } // 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
- Shape.cs
- GatewayDefinition.cs
- StandardBindingElement.cs
- Properties.cs
- RegisteredDisposeScript.cs
- ValueTypeFixupInfo.cs
- DataFieldCollectionEditor.cs
- CodeChecksumPragma.cs
- UnsafeNativeMethods.cs
- _NetRes.cs
- EntityObject.cs
- COM2ColorConverter.cs
- SqlUDTStorage.cs
- RadioButton.cs
- NamedPermissionSet.cs
- FixedLineResult.cs
- Rect.cs
- DataGridCommandEventArgs.cs
- Cursors.cs
- OraclePermissionAttribute.cs
- SeekStoryboard.cs
- HttpValueCollection.cs
- QueryValue.cs
- CodeTryCatchFinallyStatement.cs
- TableProviderWrapper.cs
- MessageBox.cs
- CancellationScope.cs
- SendKeys.cs
- PaperSource.cs
- SystemWebExtensionsSectionGroup.cs
- JulianCalendar.cs
- AnnotationResourceChangedEventArgs.cs
- SelectionList.cs
- wmiprovider.cs
- MetadataSet.cs
- AdornerHitTestResult.cs
- SchemaHelper.cs
- SecondaryViewProvider.cs
- jithelpers.cs
- CompensationParticipant.cs
- CodeTypeDeclarationCollection.cs
- ServiceModelReg.cs
- KoreanLunisolarCalendar.cs
- DataRowExtensions.cs
- WebBrowsableAttribute.cs
- MainMenu.cs
- BaseAddressElement.cs
- httpstaticobjectscollection.cs
- InfocardClientCredentials.cs
- Container.cs
- StructuredTypeEmitter.cs
- XmlNamespaceManager.cs
- AdjustableArrowCap.cs
- WebServiceParameterData.cs
- ExtensionFile.cs
- WaitHandle.cs
- PerformanceCountersElement.cs
- ImageConverter.cs
- COSERVERINFO.cs
- IERequestCache.cs
- InteropBitmapSource.cs
- GenericTypeParameterBuilder.cs
- SettingsAttributeDictionary.cs
- WebPartMenu.cs
- StrokeCollectionDefaultValueFactory.cs
- SmtpNtlmAuthenticationModule.cs
- DataGridViewCellPaintingEventArgs.cs
- HttpVersion.cs
- ToolStripDropDownClosingEventArgs.cs
- Baml2006ReaderFrame.cs
- SerialReceived.cs
- _NetworkingPerfCounters.cs
- VoiceInfo.cs
- RegisteredArrayDeclaration.cs
- ElementHostPropertyMap.cs
- PackageDigitalSignature.cs
- SafeViewOfFileHandle.cs
- EnumerableRowCollectionExtensions.cs
- ButtonChrome.cs
- ParallelTimeline.cs
- PolyLineSegment.cs
- DiagnosticTraceSource.cs
- DefaultParameterValueAttribute.cs
- VerticalAlignConverter.cs
- WindowsMenu.cs
- ControlCollection.cs
- ActiveXHelper.cs
- ColumnWidthChangingEvent.cs
- SystemIcmpV4Statistics.cs
- DataTableReaderListener.cs
- LiteralDesigner.cs
- TextBox.cs
- ColumnBinding.cs
- FormattedTextSymbols.cs
- SHA512.cs
- SqlRowUpdatedEvent.cs
- SchemaObjectWriter.cs
- TypeDelegator.cs
- DllNotFoundException.cs
- Schedule.cs