Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- ClassicBorderDecorator.cs
- SimpleType.cs
- OdbcUtils.cs
- ElementFactory.cs
- EntityDataSourceChangingEventArgs.cs
- InternalSafeNativeMethods.cs
- DataGridViewCellStyle.cs
- XmlBinaryReader.cs
- AttributeCollection.cs
- SqlPersonalizationProvider.cs
- ExplicitDiscriminatorMap.cs
- ConsoleTraceListener.cs
- IndexedString.cs
- EventWaitHandle.cs
- DataGridItem.cs
- SqlReferenceCollection.cs
- Roles.cs
- BaseServiceProvider.cs
- XmlQueryCardinality.cs
- indexingfiltermarshaler.cs
- TypeInfo.cs
- UnknownBitmapEncoder.cs
- TimeManager.cs
- XamlVector3DCollectionSerializer.cs
- TreeViewItem.cs
- XslException.cs
- BuildProvidersCompiler.cs
- HexParser.cs
- QilGeneratorEnv.cs
- GenericEnumerator.cs
- RowSpanVector.cs
- Event.cs
- ControlDesigner.cs
- MetadataArtifactLoaderFile.cs
- DynamicResourceExtension.cs
- TimeoutValidationAttribute.cs
- RangeValueProviderWrapper.cs
- OpenTypeMethods.cs
- DoubleConverter.cs
- DecimalMinMaxAggregationOperator.cs
- MailDefinitionBodyFileNameEditor.cs
- TrackBarRenderer.cs
- BoundsDrawingContextWalker.cs
- CapacityStreamGeometryContext.cs
- WizardForm.cs
- WebMessageEncodingBindingElement.cs
- ServiceSettingsResponseInfo.cs
- ComponentResourceKey.cs
- IdentitySection.cs
- PeerToPeerException.cs
- WorkflowServiceBehavior.cs
- DataStorage.cs
- FrameworkTextComposition.cs
- MbpInfo.cs
- SelectManyQueryOperator.cs
- DataContractSerializerFaultFormatter.cs
- ResourceReferenceExpressionConverter.cs
- TimeSpanStorage.cs
- XmlTextReader.cs
- BamlLocalizableResourceKey.cs
- TextEndOfParagraph.cs
- CacheDependency.cs
- TargetFrameworkAttribute.cs
- RMPermissions.cs
- ToolZoneDesigner.cs
- SvcMapFileSerializer.cs
- DispatcherExceptionEventArgs.cs
- coordinatorscratchpad.cs
- MessageSecurityVersionConverter.cs
- HyperLinkField.cs
- MethodBody.cs
- WebServiceReceive.cs
- DynamicActivityXamlReader.cs
- TabletCollection.cs
- CodeParameterDeclarationExpressionCollection.cs
- SwitchElementsCollection.cs
- EntityTransaction.cs
- WaitHandleCannotBeOpenedException.cs
- mactripleDES.cs
- TextBoxBase.cs
- LinkedResourceCollection.cs
- TabItemWrapperAutomationPeer.cs
- DataServiceBuildProvider.cs
- StorageTypeMapping.cs
- HorizontalAlignConverter.cs
- XmlDataImplementation.cs
- FormatVersion.cs
- ReachDocumentPageSerializer.cs
- DataGridViewIntLinkedList.cs
- ProcessInputEventArgs.cs
- CategoryState.cs
- RegistrySecurity.cs
- InvalidateEvent.cs
- ThrowHelper.cs
- HwndStylusInputProvider.cs
- SystemNetworkInterface.cs
- TextElementEditingBehaviorAttribute.cs
- ComponentConverter.cs
- EditorZoneBase.cs
- DataBindingExpressionBuilder.cs