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
- LockedHandleGlyph.cs
- Stack.cs
- Attributes.cs
- OAVariantLib.cs
- LogicalExpressionEditor.cs
- Stylus.cs
- SupportingTokenListenerFactory.cs
- TextServicesProperty.cs
- LockRenewalTask.cs
- ObjectViewListener.cs
- bidPrivateBase.cs
- SqlConnection.cs
- MsmqIntegrationMessageProperty.cs
- HttpCookieCollection.cs
- Point4D.cs
- DocComment.cs
- Int64Converter.cs
- EntityDesignerBuildProvider.cs
- ArrayMergeHelper.cs
- Logging.cs
- FrameworkElementAutomationPeer.cs
- LineInfo.cs
- SecurityException.cs
- PackageStore.cs
- DataReceivedEventArgs.cs
- ReflectionServiceProvider.cs
- WebProxyScriptElement.cs
- UnaryNode.cs
- Utils.cs
- InputDevice.cs
- ColorTranslator.cs
- SHA256.cs
- CodeAttachEventStatement.cs
- PieceNameHelper.cs
- DefaultObjectSerializer.cs
- BamlTreeNode.cs
- OleDbConnection.cs
- WebBrowserDesigner.cs
- ContentFilePart.cs
- TypeSystem.cs
- WrappingXamlSchemaContext.cs
- PerformanceCounterPermissionEntry.cs
- CompensateDesigner.cs
- ChildrenQuery.cs
- EventHandlersStore.cs
- GridViewDeletedEventArgs.cs
- Classification.cs
- HttpModuleAction.cs
- WindowsComboBox.cs
- DefaultAssemblyResolver.cs
- WindowsAuthenticationEventArgs.cs
- util.cs
- WebZone.cs
- PageTheme.cs
- XmlSchemaExporter.cs
- TextContainerHelper.cs
- WpfSharedXamlSchemaContext.cs
- IntSecurity.cs
- XMLSyntaxException.cs
- SizeFConverter.cs
- XamlTemplateSerializer.cs
- OverrideMode.cs
- ProgressBarBrushConverter.cs
- HttpHeaderCollection.cs
- NetworkAddressChange.cs
- SqlFactory.cs
- MSAANativeProvider.cs
- XmlAtomicValue.cs
- SQLByte.cs
- DataGridLengthConverter.cs
- DesigntimeLicenseContext.cs
- TransformProviderWrapper.cs
- HelpEvent.cs
- InlineUIContainer.cs
- InstanceNotFoundException.cs
- SafeCryptContextHandle.cs
- FixedSOMGroup.cs
- MenuItemBinding.cs
- LazyInitializer.cs
- ProjectionPruner.cs
- VisualBasicValue.cs
- Timer.cs
- ModelItemExtensions.cs
- PrePostDescendentsWalker.cs
- XmlBinaryReader.cs
- CurrentChangingEventManager.cs
- CultureInfo.cs
- __TransparentProxy.cs
- DynamicMethod.cs
- MessagePartSpecification.cs
- Span.cs
- ModelFactory.cs
- WorkflowNamespace.cs
- ComboBox.cs
- ClearCollection.cs
- IERequestCache.cs
- SortDescription.cs
- TabControl.cs
- AuthenticateEventArgs.cs
- TimeSpan.cs