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
- HelpProvider.cs
- DictionaryEntry.cs
- NameService.cs
- HtmlInputSubmit.cs
- PrintDialogException.cs
- ResourceDisplayNameAttribute.cs
- CacheEntry.cs
- DataTableMappingCollection.cs
- InputScope.cs
- TreeNodeEventArgs.cs
- NullableDecimalMinMaxAggregationOperator.cs
- InkCollectionBehavior.cs
- RootBuilder.cs
- ConstructorBuilder.cs
- XmlNamespaceMappingCollection.cs
- EntityDataSourceContextCreatedEventArgs.cs
- EditorPartCollection.cs
- ConfigurationLocationCollection.cs
- ProviderUtil.cs
- FormViewInsertEventArgs.cs
- PublisherIdentityPermission.cs
- InternalConfigEventArgs.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- Stack.cs
- FileRecordSequenceCompletedAsyncResult.cs
- SplayTreeNode.cs
- ConvertEvent.cs
- MarkupWriter.cs
- TcpProcessProtocolHandler.cs
- ACL.cs
- IUnknownConstantAttribute.cs
- StateItem.cs
- SqlParameter.cs
- QilLiteral.cs
- securitymgrsite.cs
- DesignerOptions.cs
- ToolboxItem.cs
- DbInsertCommandTree.cs
- EdmProviderManifest.cs
- EndpointAddressAugust2004.cs
- MissingFieldException.cs
- AccessKeyManager.cs
- RegexBoyerMoore.cs
- Knowncolors.cs
- CounterSampleCalculator.cs
- HwndSource.cs
- FlatButtonAppearance.cs
- WsdlParser.cs
- ParameterReplacerVisitor.cs
- ExceptionHandlersDesigner.cs
- JoinQueryOperator.cs
- PropertySegmentSerializer.cs
- LingerOption.cs
- FeatureSupport.cs
- BrushMappingModeValidation.cs
- CompileXomlTask.cs
- EnumType.cs
- MailAddressCollection.cs
- SqlCacheDependency.cs
- WindowsPrincipal.cs
- EnumBuilder.cs
- ApplicationDirectory.cs
- CodeIdentifiers.cs
- TcpProcessProtocolHandler.cs
- RewritingSimplifier.cs
- BuildProvider.cs
- EdmComplexPropertyAttribute.cs
- ContentElement.cs
- UnknownBitmapEncoder.cs
- SqlGenericUtil.cs
- Completion.cs
- SemanticAnalyzer.cs
- FontConverter.cs
- ToolStripRendererSwitcher.cs
- BStrWrapper.cs
- ConfigurationSectionGroupCollection.cs
- DomainLiteralReader.cs
- ZipIOModeEnforcingStream.cs
- ListDictionary.cs
- RC2CryptoServiceProvider.cs
- PolicyLevel.cs
- StrokeNodeOperations.cs
- RegexInterpreter.cs
- CatalogPartChrome.cs
- FilterQuery.cs
- CodeBlockBuilder.cs
- ProfileParameter.cs
- Decorator.cs
- XPathDocumentBuilder.cs
- SessionStateItemCollection.cs
- SymbolPair.cs
- oledbconnectionstring.cs
- SmiContextFactory.cs
- RowSpanVector.cs
- ContentPlaceHolder.cs
- TrackingStringDictionary.cs
- XmlRawWriter.cs
- AuthorizationSection.cs
- CountAggregationOperator.cs
- MediaTimeline.cs