Code:
/ DotNET / DotNET / 8.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
- XamlPoint3DCollectionSerializer.cs
- TreeViewEvent.cs
- TrustSection.cs
- ReferentialConstraint.cs
- DataContractAttribute.cs
- AVElementHelper.cs
- DataGridViewMethods.cs
- HandlerFactoryWrapper.cs
- InputMethodStateChangeEventArgs.cs
- PeerTransportElement.cs
- UdpTransportBindingElement.cs
- _SslStream.cs
- Win32MouseDevice.cs
- GridView.cs
- ActivityPropertyReference.cs
- DynamicQueryStringParameter.cs
- QuaternionRotation3D.cs
- safelinkcollection.cs
- SmiRequestExecutor.cs
- TryExpression.cs
- CollectionContainer.cs
- MultiDataTrigger.cs
- FreezableDefaultValueFactory.cs
- XslException.cs
- DbQueryCommandTree.cs
- RSAOAEPKeyExchangeFormatter.cs
- XmlSerializerNamespaces.cs
- ClassData.cs
- QilStrConcat.cs
- CompleteWizardStep.cs
- EmptyEnumerator.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- SqlCaseSimplifier.cs
- QfeChecker.cs
- HuffCodec.cs
- TablePattern.cs
- HttpCapabilitiesEvaluator.cs
- TabPage.cs
- EntryWrittenEventArgs.cs
- DataProtection.cs
- XmlMtomWriter.cs
- XmlArrayItemAttribute.cs
- BaseCodeDomTreeGenerator.cs
- PowerStatus.cs
- AbstractDataSvcMapFileLoader.cs
- SmiConnection.cs
- _SpnDictionary.cs
- Parameter.cs
- ProgressBarAutomationPeer.cs
- XPathNavigatorKeyComparer.cs
- DataGridViewSortCompareEventArgs.cs
- IntSecurity.cs
- CultureInfoConverter.cs
- DbBuffer.cs
- ConstraintManager.cs
- DefaultValueConverter.cs
- ProcessHostFactoryHelper.cs
- BitmapMetadataEnumerator.cs
- Assert.cs
- DependencyProperty.cs
- CAGDesigner.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- WorkflowNamespace.cs
- GridViewDeleteEventArgs.cs
- TextFormatter.cs
- AsymmetricSignatureDeformatter.cs
- LogArchiveSnapshot.cs
- EnvironmentPermission.cs
- XamlFrame.cs
- UntrustedRecipientException.cs
- PartialCachingControl.cs
- TcpHostedTransportConfiguration.cs
- SoapRpcServiceAttribute.cs
- ISFTagAndGuidCache.cs
- Subordinate.cs
- ParamArrayAttribute.cs
- ListViewSortEventArgs.cs
- FormatException.cs
- PkcsMisc.cs
- KeyEventArgs.cs
- TypeReference.cs
- Timer.cs
- selecteditemcollection.cs
- GuidTagList.cs
- UIElementIsland.cs
- _AutoWebProxyScriptEngine.cs
- WeakReferenceList.cs
- EntitySqlException.cs
- SslStream.cs
- StaticSiteMapProvider.cs
- TreeNodeCollection.cs
- ColumnMapVisitor.cs
- TemplateXamlTreeBuilder.cs
- RuleInfoComparer.cs
- WindowsNonControl.cs
- DateTimeValueSerializer.cs
- LightweightCodeGenerator.cs
- GenericPrincipal.cs
- LinqDataSourceDisposeEventArgs.cs
- ZipIOLocalFileBlock.cs