Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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. // //----------------------------------------------------------------------------- /* * 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OuterProxyWrapper.cs
- HtmlLiteralTextAdapter.cs
- RadioButtonStandardAdapter.cs
- CounterCreationData.cs
- StatusStrip.cs
- GlyphCache.cs
- DbProviderManifest.cs
- DesigntimeLicenseContext.cs
- ClientScriptItem.cs
- DropDownList.cs
- BlockUIContainer.cs
- SiteMapDataSource.cs
- ProcessModelSection.cs
- BrowserCapabilitiesFactory.cs
- Globals.cs
- HttpHandlersInstallComponent.cs
- documentation.cs
- XmlSerializerFaultFormatter.cs
- ThreadStartException.cs
- WindowsListBox.cs
- TrackingMemoryStreamFactory.cs
- ChannelManagerHelpers.cs
- ZipFileInfoCollection.cs
- OleDbRowUpdatingEvent.cs
- _HeaderInfo.cs
- FormsAuthenticationUserCollection.cs
- FileLogRecordStream.cs
- DbParameterCollectionHelper.cs
- TextEndOfLine.cs
- TextRangeSerialization.cs
- BaseContextMenu.cs
- HtmlMeta.cs
- FileStream.cs
- HttpDictionary.cs
- ImageListUtils.cs
- ErrorReporting.cs
- IERequestCache.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- FlowLayout.cs
- BaseConfigurationRecord.cs
- HtmlValidationSummaryAdapter.cs
- ViewManager.cs
- ApplicationSecurityManager.cs
- HtmlElementErrorEventArgs.cs
- DllNotFoundException.cs
- RequestCache.cs
- FilterQuery.cs
- FixedPage.cs
- ResourcePermissionBaseEntry.cs
- CSharpCodeProvider.cs
- RelatedView.cs
- CodeExporter.cs
- COAUTHIDENTITY.cs
- SafePEFileHandle.cs
- IsolatedStorageFilePermission.cs
- AdapterDictionary.cs
- Matrix.cs
- WhitespaceRuleLookup.cs
- ProviderException.cs
- IDictionary.cs
- AdRotator.cs
- WrapPanel.cs
- Encoder.cs
- _RequestCacheProtocol.cs
- StateMachineTimers.cs
- XmlReflectionImporter.cs
- ColorBlend.cs
- WebPartCatalogCloseVerb.cs
- EntityCommandDefinition.cs
- WebSysDisplayNameAttribute.cs
- HttpDictionary.cs
- _RequestCacheProtocol.cs
- LogArchiveSnapshot.cs
- Point3D.cs
- MetadataArtifactLoaderComposite.cs
- MetafileHeaderWmf.cs
- SqlProviderServices.cs
- XmlDataLoader.cs
- FamilyCollection.cs
- _RegBlobWebProxyDataBuilder.cs
- Perspective.cs
- TextTreeRootNode.cs
- DataGridTablesFactory.cs
- Light.cs
- RepeaterDesigner.cs
- TextAnchor.cs
- AutoCompleteStringCollection.cs
- PageMediaSize.cs
- IsolationInterop.cs
- OdbcStatementHandle.cs
- PartialCachingControl.cs
- DataGridLinkButton.cs
- CryptoConfig.cs
- IdentityHolder.cs
- OdbcConnectionString.cs
- QilInvokeEarlyBound.cs
- PageStatePersister.cs
- ExtensionQuery.cs
- GPRECTF.cs
- CaseStatementSlot.cs