Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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 } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XsdCachingReader.cs
- UserMapPath.cs
- MultiTrigger.cs
- PeerObject.cs
- ProjectionCamera.cs
- SystemColorTracker.cs
- FileSecurity.cs
- TrailingSpaceComparer.cs
- SymbolTable.cs
- CngProvider.cs
- InheritanceRules.cs
- FrameDimension.cs
- XmlProcessingInstruction.cs
- ArrayListCollectionBase.cs
- DataGridViewRowsRemovedEventArgs.cs
- StylusPoint.cs
- WindowsPen.cs
- DeobfuscatingStream.cs
- Geometry3D.cs
- OAVariantLib.cs
- FunctionNode.cs
- Interlocked.cs
- Parameter.cs
- IsolatedStorageFileStream.cs
- XdrBuilder.cs
- ListBoxItemWrapperAutomationPeer.cs
- IndentedTextWriter.cs
- Binding.cs
- HttpModuleAction.cs
- HybridDictionary.cs
- XmlChoiceIdentifierAttribute.cs
- CaseDesigner.xaml.cs
- _SslState.cs
- EventLogPermissionEntry.cs
- ClientScriptManagerWrapper.cs
- DataTableClearEvent.cs
- SoundPlayer.cs
- ReadOnlyHierarchicalDataSourceView.cs
- UnhandledExceptionEventArgs.cs
- WindowVisualStateTracker.cs
- SqlFactory.cs
- MatrixStack.cs
- AliasGenerator.cs
- InstanceContextMode.cs
- SiteOfOriginContainer.cs
- AttachedPropertyMethodSelector.cs
- HandleCollector.cs
- Expression.cs
- ProfileSettingsCollection.cs
- Int64Converter.cs
- DocumentViewerConstants.cs
- SymbolType.cs
- EventBindingService.cs
- Helper.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- QueryServiceConfigHandle.cs
- FormatSettings.cs
- ServiceDescriptions.cs
- OverflowException.cs
- CreateUserWizard.cs
- ParameterCollection.cs
- ImageAttributes.cs
- WebServiceClientProxyGenerator.cs
- PinnedBufferMemoryStream.cs
- CodeSpit.cs
- CodeDelegateCreateExpression.cs
- BitmapEffectCollection.cs
- ResXResourceReader.cs
- ScriptRegistrationManager.cs
- _LoggingObject.cs
- ResizingMessageFilter.cs
- BindingNavigator.cs
- codemethodreferenceexpression.cs
- CountAggregationOperator.cs
- XmlSigningNodeWriter.cs
- TableHeaderCell.cs
- CoreChannel.cs
- Pkcs9Attribute.cs
- InstanceLockQueryResult.cs
- SelectedDatesCollection.cs
- CodeMemberMethod.cs
- cookiecollection.cs
- PointCollection.cs
- ConnectionPoint.cs
- UTF8Encoding.cs
- Interlocked.cs
- SelectionRangeConverter.cs
- LabelAutomationPeer.cs
- XPathException.cs
- AdapterDictionary.cs
- CryptoKeySecurity.cs
- SafeCryptHandles.cs
- HelpProvider.cs
- ArrayConverter.cs
- CacheForPrimitiveTypes.cs
- Thread.cs
- IssuedTokenClientBehaviorsElementCollection.cs
- SqlProfileProvider.cs
- Rect.cs
- ObjectDataSourceMethodEventArgs.cs