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
- BaseCodeDomTreeGenerator.cs
- ObfuscationAttribute.cs
- TimeZone.cs
- Column.cs
- FreeFormDesigner.cs
- ObservableCollection.cs
- MimeObjectFactory.cs
- FileSystemEventArgs.cs
- Page.cs
- FamilyTypefaceCollection.cs
- ToolStripProgressBar.cs
- DataListDesigner.cs
- BuilderPropertyEntry.cs
- SelectQueryOperator.cs
- DbExpressionVisitor_TResultType.cs
- OptimalBreakSession.cs
- ActivityDelegate.cs
- EnumBuilder.cs
- VScrollProperties.cs
- Schema.cs
- CommandHelper.cs
- JsonWriterDelegator.cs
- SqlServices.cs
- TypeForwardedToAttribute.cs
- StandardMenuStripVerb.cs
- ResourceProviderFactory.cs
- DependsOnAttribute.cs
- Brush.cs
- HtmlInputText.cs
- ReadOnlyDictionary.cs
- CellRelation.cs
- ProfileSettings.cs
- CustomErrorsSectionWrapper.cs
- DataPagerFieldCommandEventArgs.cs
- XhtmlTextWriter.cs
- DoubleAnimationBase.cs
- DataGridDesigner.cs
- SoapAttributeAttribute.cs
- WebPartHeaderCloseVerb.cs
- RefreshEventArgs.cs
- WebPartDisplayModeCancelEventArgs.cs
- VScrollBar.cs
- GenericsInstances.cs
- ReflectTypeDescriptionProvider.cs
- DateTimeParse.cs
- UnsafeCollabNativeMethods.cs
- OletxTransactionFormatter.cs
- SamlEvidence.cs
- SmiMetaDataProperty.cs
- BamlRecordReader.cs
- MessageBox.cs
- MachineKeySection.cs
- DocumentReference.cs
- MessageQueueException.cs
- EdmSchemaError.cs
- TextOutput.cs
- WebPartConnectVerb.cs
- DataGridViewRowsRemovedEventArgs.cs
- DiagnosticTraceSource.cs
- Object.cs
- XmlSchemaParticle.cs
- DataSourceXmlSerializer.cs
- SchemaTypeEmitter.cs
- CheckableControlBaseAdapter.cs
- NullableLongAverageAggregationOperator.cs
- WebPartsSection.cs
- PiiTraceSource.cs
- Point3DCollectionConverter.cs
- WebPartExportVerb.cs
- Accessible.cs
- TableLayoutCellPaintEventArgs.cs
- ServiceRouteHandler.cs
- XhtmlBasicSelectionListAdapter.cs
- ExtensionCollection.cs
- UDPClient.cs
- SqlExpressionNullability.cs
- PointCollectionValueSerializer.cs
- LoggedException.cs
- SelectedCellsCollection.cs
- ApplicationSettingsBase.cs
- NameService.cs
- TreeIterators.cs
- MouseCaptureWithinProperty.cs
- QueryComponents.cs
- SecurityManager.cs
- ColorConvertedBitmap.cs
- PrintSystemException.cs
- TdsParser.cs
- ReferenceSchema.cs
- LinearQuaternionKeyFrame.cs
- BrushConverter.cs
- ModuleElement.cs
- NameValueCollection.cs
- TypePropertyEditor.cs
- EntityContainerEmitter.cs
- ConfigXmlWhitespace.cs
- MediaScriptCommandRoutedEventArgs.cs
- XNameTypeConverter.cs
- XpsDigitalSignature.cs
- SQLInt16Storage.cs