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
- OpenTypeLayout.cs
- FlowDocumentScrollViewer.cs
- DefinitionUpdate.cs
- MemoryRecordBuffer.cs
- XMLUtil.cs
- ComplexLine.cs
- CompositeScriptReferenceEventArgs.cs
- DPAPIProtectedConfigurationProvider.cs
- DecoderBestFitFallback.cs
- XmlSchemaValidationException.cs
- ProfilePropertyNameValidator.cs
- SingleStorage.cs
- GroupStyle.cs
- TextBlock.cs
- XmlAttributes.cs
- FixedDocumentSequencePaginator.cs
- MenuItemBinding.cs
- XmlAggregates.cs
- ActionMismatchAddressingException.cs
- DatagridviewDisplayedBandsData.cs
- HttpValueCollection.cs
- VideoDrawing.cs
- TypeFieldSchema.cs
- PersistenceTypeAttribute.cs
- TransactionInterop.cs
- SoapSchemaMember.cs
- LinqTreeNodeEvaluator.cs
- EnumType.cs
- ObjectItemConventionAssemblyLoader.cs
- DrawingBrush.cs
- CustomCredentialPolicy.cs
- login.cs
- TableLayoutSettings.cs
- SettingsPropertyNotFoundException.cs
- CardSpaceSelector.cs
- ProtocolElementCollection.cs
- Rectangle.cs
- StateFinalizationActivity.cs
- WebPartHelpVerb.cs
- WebConfigManager.cs
- ResourcesBuildProvider.cs
- WindowsUpDown.cs
- ClearTypeHintValidation.cs
- AnchorEditor.cs
- Rect3DConverter.cs
- ElementNotEnabledException.cs
- EnlistmentTraceIdentifier.cs
- StyleHelper.cs
- ImageProxy.cs
- JpegBitmapEncoder.cs
- PeerSecurityHelpers.cs
- MarkupExtensionReturnTypeAttribute.cs
- ServiceNameCollection.cs
- CheckBoxBaseAdapter.cs
- DrawingBrush.cs
- CaseCqlBlock.cs
- CdpEqualityComparer.cs
- OptimizedTemplateContentHelper.cs
- SqlInfoMessageEvent.cs
- MultipleViewPattern.cs
- glyphs.cs
- CustomAssemblyResolver.cs
- CompiledXpathExpr.cs
- Thickness.cs
- ForeignConstraint.cs
- ServiceDescriptionImporter.cs
- EntityKeyElement.cs
- ReliabilityContractAttribute.cs
- PtsHelper.cs
- NavigationPropertyEmitter.cs
- LayoutEngine.cs
- DataAdapter.cs
- ForEachAction.cs
- SemaphoreFullException.cs
- TextCharacters.cs
- SequenceDesignerAccessibleObject.cs
- DataServiceExpressionVisitor.cs
- DbModificationCommandTree.cs
- ContentDisposition.cs
- CustomAttribute.cs
- TextTreeUndoUnit.cs
- TimeSpanStorage.cs
- ChannelPool.cs
- BatchStream.cs
- DependencyPropertyAttribute.cs
- TemplateInstanceAttribute.cs
- FilteredAttributeCollection.cs
- RelationshipEndMember.cs
- Literal.cs
- CharacterBuffer.cs
- MouseActionValueSerializer.cs
- ClientSettingsProvider.cs
- StreamInfo.cs
- Matrix.cs
- HostingEnvironmentException.cs
- TextEffectResolver.cs
- DesignOnlyAttribute.cs
- ExpressionWriter.cs
- ButtonField.cs
- FileDialogPermission.cs