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
- FileLogRecordHeader.cs
- DataListItemCollection.cs
- ImageCodecInfoPrivate.cs
- TemplateComponentConnector.cs
- FontFamilyValueSerializer.cs
- DictionaryCustomTypeDescriptor.cs
- DateTimeHelper.cs
- PointHitTestResult.cs
- XmlSchemaSimpleContentExtension.cs
- activationcontext.cs
- NameSpaceExtractor.cs
- DataGridItemAttachedStorage.cs
- ListenDesigner.cs
- DataGridViewAdvancedBorderStyle.cs
- NavigationWindow.cs
- __Filters.cs
- GenericTypeParameterBuilder.cs
- AttributeUsageAttribute.cs
- FactoryGenerator.cs
- RuntimeCompatibilityAttribute.cs
- XmlSchemaAppInfo.cs
- ValidationRuleCollection.cs
- UnsafeNativeMethods.cs
- WebPartUtil.cs
- RuntimeConfig.cs
- TableParagraph.cs
- TrustLevelCollection.cs
- PEFileEvidenceFactory.cs
- SQLBoolean.cs
- GlyphRun.cs
- ProxyAttribute.cs
- BypassElement.cs
- HelpProvider.cs
- HotCommands.cs
- ListViewInsertionMark.cs
- SimpleWebHandlerParser.cs
- AttributeQuery.cs
- ConfigurationStrings.cs
- UrlAuthFailedErrorFormatter.cs
- HostExecutionContextManager.cs
- IdentityValidationException.cs
- NavigationCommands.cs
- ADMembershipProvider.cs
- JavaScriptObjectDeserializer.cs
- PriorityBindingExpression.cs
- IntegerFacetDescriptionElement.cs
- SchemaTableOptionalColumn.cs
- Point4DConverter.cs
- BamlCollectionHolder.cs
- keycontainerpermission.cs
- ModelItemDictionaryImpl.cs
- DbParameterHelper.cs
- NativeCppClassAttribute.cs
- CodeCommentStatementCollection.cs
- LinqDataSourceDeleteEventArgs.cs
- TargetControlTypeAttribute.cs
- SelectionRangeConverter.cs
- Selection.cs
- DeviceSpecificDesigner.cs
- Dictionary.cs
- HtmlTextArea.cs
- HtmlShimManager.cs
- CodeNamespaceCollection.cs
- OleDbConnection.cs
- KnownBoxes.cs
- Rotation3DKeyFrameCollection.cs
- DelegateSerializationHolder.cs
- SimpleMailWebEventProvider.cs
- DateTime.cs
- DetailsViewPagerRow.cs
- DateTimeEditor.cs
- ImageMapEventArgs.cs
- GraphicsPathIterator.cs
- ByteConverter.cs
- ConfigurationStrings.cs
- WindowsTitleBar.cs
- InlineUIContainer.cs
- SemaphoreSlim.cs
- LoadedOrUnloadedOperation.cs
- SizeAnimationUsingKeyFrames.cs
- SqlParameter.cs
- propertytag.cs
- HttpContextWrapper.cs
- PlatformCulture.cs
- AbstractSvcMapFileLoader.cs
- XPathDocument.cs
- GlobalizationSection.cs
- XmlNamespaceMapping.cs
- DbDataAdapter.cs
- securitymgrsite.cs
- HiddenFieldPageStatePersister.cs
- ExcCanonicalXml.cs
- InputLanguageEventArgs.cs
- TransformGroup.cs
- GroupBox.cs
- KnownBoxes.cs
- MetadataPropertyCollection.cs
- TransactionBridgeSection.cs
- ToolStripDropDownClosedEventArgs.cs
- NativeDirectoryServicesQueryAPIs.cs