Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BuilderElements.cs
- Console.cs
- StateBag.cs
- Int32AnimationBase.cs
- Deserializer.cs
- PasswordBoxAutomationPeer.cs
- Base64Decoder.cs
- BaseDataList.cs
- ResourceSetExpression.cs
- RemoteDebugger.cs
- TranslateTransform3D.cs
- VarRefManager.cs
- HttpAsyncResult.cs
- ChannelFactoryRefCache.cs
- TimeoutHelper.cs
- SqlDependency.cs
- CallbackHandler.cs
- WebConfigurationManager.cs
- BezierSegment.cs
- TextProperties.cs
- DescendantOverDescendantQuery.cs
- ConnectionStringsExpressionBuilder.cs
- AxisAngleRotation3D.cs
- GeometryDrawing.cs
- TransformPatternIdentifiers.cs
- QilSortKey.cs
- TextTreeRootTextBlock.cs
- BlockUIContainer.cs
- CompilationRelaxations.cs
- CodeConditionStatement.cs
- FormsAuthenticationCredentials.cs
- MasterPage.cs
- SQLStringStorage.cs
- MTConfigUtil.cs
- SymbolMethod.cs
- PropertiesTab.cs
- FormViewInsertEventArgs.cs
- EdmFunction.cs
- ProjectionPruner.cs
- DesigntimeLicenseContextSerializer.cs
- SafeMILHandleMemoryPressure.cs
- XmlStrings.cs
- sqlser.cs
- QilIterator.cs
- WindowsAltTab.cs
- DTCTransactionManager.cs
- SocketManager.cs
- InputLangChangeEvent.cs
- coordinatorfactory.cs
- BufferedGraphicsManager.cs
- DbProviderFactory.cs
- DataComponentNameHandler.cs
- SkinBuilder.cs
- CngAlgorithm.cs
- MDIClient.cs
- ZipIOExtraFieldElement.cs
- Sorting.cs
- FileFormatException.cs
- RequestCachePolicy.cs
- ScriptingProfileServiceSection.cs
- ObjectQueryState.cs
- XmlAttributeOverrides.cs
- OperationExecutionFault.cs
- safePerfProviderHandle.cs
- AlignmentXValidation.cs
- KerberosRequestorSecurityTokenAuthenticator.cs
- SqlResolver.cs
- Binding.cs
- CodeSnippetCompileUnit.cs
- Ref.cs
- StyleCollectionEditor.cs
- IDReferencePropertyAttribute.cs
- XmlRootAttribute.cs
- ExpandSegmentCollection.cs
- SelectionListComponentEditor.cs
- OdbcDataAdapter.cs
- Cell.cs
- RightsManagementEncryptionTransform.cs
- FlowDocumentPage.cs
- CqlLexer.cs
- CodeCastExpression.cs
- WebPartConnectionsCancelEventArgs.cs
- PowerModeChangedEventArgs.cs
- FactoryGenerator.cs
- ModuleBuilder.cs
- WrappedIUnknown.cs
- ObjectConverter.cs
- XPathBuilder.cs
- InternalTypeHelper.cs
- HtmlInputButton.cs
- WebServiceTypeData.cs
- MetadataWorkspace.cs
- XmlRawWriter.cs
- Convert.cs
- DocumentSchemaValidator.cs
- ISAPIRuntime.cs
- RoleGroup.cs
- QueryableDataSource.cs
- ArrayWithOffset.cs
- ColorAnimationBase.cs