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
- XmlSchemaElement.cs
- ObjectRef.cs
- RuleSetDialog.Designer.cs
- EntityDataSourceConfigureObjectContext.cs
- ProviderConnectionPoint.cs
- MenuItemAutomationPeer.cs
- ObjectManager.cs
- GlyphInfoList.cs
- MSAAEventDispatcher.cs
- OutputCacheProfile.cs
- ContractMethodInfo.cs
- ResourceReferenceKeyNotFoundException.cs
- HMACSHA384.cs
- FormsAuthenticationUser.cs
- ProcessHostMapPath.cs
- SynchronizedKeyedCollection.cs
- SqlAliasesReferenced.cs
- CapabilitiesState.cs
- XmlQualifiedName.cs
- XPathNodeHelper.cs
- ApplicationProxyInternal.cs
- SafeEventHandle.cs
- ProgressBarRenderer.cs
- RubberbandSelector.cs
- AsyncResult.cs
- TitleStyle.cs
- QuotedPrintableStream.cs
- DataGridTableStyleMappingNameEditor.cs
- FixUpCollection.cs
- TypeConstant.cs
- XmlEncodedRawTextWriter.cs
- BuiltInPermissionSets.cs
- CommandManager.cs
- ResXResourceReader.cs
- OuterGlowBitmapEffect.cs
- SqlRewriteScalarSubqueries.cs
- Operand.cs
- BitmapEffect.cs
- UIElementParaClient.cs
- WebPartMovingEventArgs.cs
- Soap12ServerProtocol.cs
- BackgroundFormatInfo.cs
- BmpBitmapEncoder.cs
- AutomationProperty.cs
- RelatedEnd.cs
- NamedPipeHostedTransportConfiguration.cs
- clipboard.cs
- XmlSecureResolver.cs
- AssociationType.cs
- DesignerActionItem.cs
- ProfileSection.cs
- OutKeywords.cs
- DataBindingHandlerAttribute.cs
- DateTimeFormat.cs
- StackOverflowException.cs
- MediaElementAutomationPeer.cs
- SoapSchemaImporter.cs
- DataStreamFromComStream.cs
- IgnoreSectionHandler.cs
- DbCommandDefinition.cs
- SQLMoney.cs
- Control.cs
- PropertyItem.cs
- Int32Animation.cs
- TemplateInstanceAttribute.cs
- ListViewTableCell.cs
- FloaterParagraph.cs
- PatternMatcher.cs
- Pair.cs
- DecimalKeyFrameCollection.cs
- Attachment.cs
- WhitespaceRuleReader.cs
- OracleFactory.cs
- XslCompiledTransform.cs
- ConnectionOrientedTransportBindingElement.cs
- MessageQueuePermissionAttribute.cs
- _NestedMultipleAsyncResult.cs
- initElementDictionary.cs
- FreezableDefaultValueFactory.cs
- SystemResources.cs
- LogLogRecord.cs
- Propagator.ExtentPlaceholderCreator.cs
- TypeDescriptorContext.cs
- BitmapEffectrendercontext.cs
- SplitterEvent.cs
- ProtocolsConfigurationHandler.cs
- TextSimpleMarkerProperties.cs
- SqlDataSourceWizardForm.cs
- PageCache.cs
- TableLayoutCellPaintEventArgs.cs
- BufferModeSettings.cs
- DataBindEngine.cs
- PrivilegeNotHeldException.cs
- MetadataException.cs
- ThreadNeutralSemaphore.cs
- MulticastNotSupportedException.cs
- OpacityConverter.cs
- CompoundFileDeflateTransform.cs
- Privilege.cs
- XmlTypeMapping.cs