Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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 } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ //// 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 } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RepeaterItem.cs
- ColorInterpolationModeValidation.cs
- ProxyDataContractResolver.cs
- DBAsyncResult.cs
- PartialClassGenerationTaskInternal.cs
- HMAC.cs
- IERequestCache.cs
- BoundColumn.cs
- UiaCoreTypesApi.cs
- RuntimeConfigLKG.cs
- ConfigXmlAttribute.cs
- MouseCaptureWithinProperty.cs
- IisTraceListener.cs
- XPathParser.cs
- WindowsPen.cs
- CollectionsUtil.cs
- LabelLiteral.cs
- TypeDependencyAttribute.cs
- Opcode.cs
- SiteMapNodeItem.cs
- DBConnection.cs
- ValueOfAction.cs
- DataGridViewColumnConverter.cs
- ConfigurationPropertyAttribute.cs
- OleCmdHelper.cs
- SqlUtils.cs
- Label.cs
- MemberBinding.cs
- DictionarySectionHandler.cs
- MemoryStream.cs
- Vector3DCollection.cs
- ParseChildrenAsPropertiesAttribute.cs
- ExtenderProvidedPropertyAttribute.cs
- DispatchOperation.cs
- unsafeIndexingFilterStream.cs
- ObjectFullSpanRewriter.cs
- SqlCrossApplyToCrossJoin.cs
- DataObjectFieldAttribute.cs
- BoundPropertyEntry.cs
- ToggleButton.cs
- MarkupCompilePass1.cs
- HotCommands.cs
- EntityDesignerUtils.cs
- DrawingGroup.cs
- SynchronizationContextHelper.cs
- PolicyStatement.cs
- ChangeNode.cs
- PerfCounterSection.cs
- WebPartVerb.cs
- DataGridViewHitTestInfo.cs
- HashSetDebugView.cs
- CompiledRegexRunner.cs
- StateDesigner.Layouts.cs
- ResourcesChangeInfo.cs
- XamlStream.cs
- ByteStreamMessage.cs
- TextContainer.cs
- WebPartConnectVerb.cs
- ZipPackage.cs
- RenderData.cs
- EllipseGeometry.cs
- Tool.cs
- SapiInterop.cs
- SecUtil.cs
- ReadOnlyCollectionBase.cs
- Oci.cs
- MimeWriter.cs
- SystemIPv6InterfaceProperties.cs
- SynchronizedDispatch.cs
- BuildProvidersCompiler.cs
- ResourcesBuildProvider.cs
- LineServices.cs
- AstNode.cs
- WsrmFault.cs
- XmlSchemaSubstitutionGroup.cs
- ListGeneralPage.cs
- MetadataItemCollectionFactory.cs
- VBIdentifierDesigner.xaml.cs
- Symbol.cs
- SoapMessage.cs
- WebPartVerbsEventArgs.cs
- clipboard.cs
- ListViewItem.cs
- DecoderReplacementFallback.cs
- ConfigXmlComment.cs
- Soap12ProtocolImporter.cs
- SecurityManager.cs
- Quack.cs
- SafeRightsManagementQueryHandle.cs
- ViewStateModeByIdAttribute.cs
- HashSetEqualityComparer.cs
- FixedPosition.cs
- ObfuscationAttribute.cs
- SignatureDescription.cs
- IconConverter.cs
- TextTreeNode.cs
- PrintControllerWithStatusDialog.cs
- PropertyEmitter.cs
- SubpageParaClient.cs
- AddInContractAttribute.cs