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
- CommandPlan.cs
- SystemDropShadowChrome.cs
- DispatcherObject.cs
- StringPropertyBuilder.cs
- WebExceptionStatus.cs
- DbBuffer.cs
- DataPagerCommandEventArgs.cs
- ProfileModule.cs
- SqlConnectionHelper.cs
- SurrogateSelector.cs
- OdbcConnectionHandle.cs
- dataprotectionpermissionattribute.cs
- RenderDataDrawingContext.cs
- WebCategoryAttribute.cs
- ExclusiveNamedPipeTransportManager.cs
- Domain.cs
- TimeStampChecker.cs
- OdbcError.cs
- JsonObjectDataContract.cs
- SchemaElement.cs
- Slider.cs
- WmpBitmapDecoder.cs
- RemotingConfigParser.cs
- KernelTypeValidation.cs
- ThreadExceptionDialog.cs
- Manipulation.cs
- EncryptedType.cs
- CompilerTypeWithParams.cs
- UnsafeNativeMethodsTablet.cs
- WindowsPrincipal.cs
- EpmSyndicationContentDeSerializer.cs
- DetailsViewInsertedEventArgs.cs
- DelegateSerializationHolder.cs
- StrokeNodeData.cs
- ParallelActivityDesigner.cs
- VersionPair.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- ListViewGroupItemCollection.cs
- Effect.cs
- DataQuery.cs
- SamlAttributeStatement.cs
- IsolatedStoragePermission.cs
- XNodeValidator.cs
- WebPartConnectionsConfigureVerb.cs
- XmlDataSourceDesigner.cs
- CreationContext.cs
- InputProcessorProfilesLoader.cs
- PropertyToken.cs
- BamlWriter.cs
- MinimizableAttributeTypeConverter.cs
- CodeArgumentReferenceExpression.cs
- SqlProfileProvider.cs
- ImageConverter.cs
- ClientBuildManagerCallback.cs
- PathSegmentCollection.cs
- DBConnectionString.cs
- SqlDataReaderSmi.cs
- LineSegment.cs
- RuntimeCompatibilityAttribute.cs
- ToolBarOverflowPanel.cs
- ServiceModelEnumValidatorAttribute.cs
- TransformGroup.cs
- login.cs
- RegexInterpreter.cs
- CompilerWrapper.cs
- PolyLineSegment.cs
- AdapterUtil.cs
- RtfToken.cs
- ICspAsymmetricAlgorithm.cs
- HighlightVisual.cs
- SocketAddress.cs
- Triangle.cs
- SiteMapNodeItemEventArgs.cs
- odbcmetadatafactory.cs
- DigestComparer.cs
- SessionParameter.cs
- OracleEncoding.cs
- CodeCompiler.cs
- ProviderCommandInfoUtils.cs
- TraversalRequest.cs
- CodeCastExpression.cs
- CacheAxisQuery.cs
- PathParser.cs
- TemplateBuilder.cs
- RangeValidator.cs
- DesignerVerbCollection.cs
- RegexWriter.cs
- PrinterResolution.cs
- XmlSchemaComplexType.cs
- UrlPath.cs
- EntitySqlQueryCacheEntry.cs
- ResourcePool.cs
- ImageMetadata.cs
- MailAddressCollection.cs
- StyleHelper.cs
- XmlSchemaInfo.cs
- ConnectorSelectionGlyph.cs
- FontSizeConverter.cs
- TextTreeText.cs
- ExplicitDiscriminatorMap.cs