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
- NativeStructs.cs
- MDIClient.cs
- FileDialogCustomPlace.cs
- ServerIdentity.cs
- BitmapEffectDrawingContextWalker.cs
- FunctionNode.cs
- Int32Converter.cs
- elementinformation.cs
- Nodes.cs
- OleTxTransactionInfo.cs
- COM2PropertyPageUITypeConverter.cs
- IdentitySection.cs
- StreamingContext.cs
- DuplicateWaitObjectException.cs
- DateTimeFormat.cs
- InvokePattern.cs
- OrderedDictionaryStateHelper.cs
- CatalogZoneBase.cs
- SQLGuid.cs
- XXXInfos.cs
- SuspendDesigner.cs
- IdentityValidationException.cs
- DetailsViewDeletedEventArgs.cs
- WSHttpTransportSecurityElement.cs
- TextRangeSerialization.cs
- EntityConnection.cs
- Regex.cs
- HttpChannelBindingToken.cs
- PrintEvent.cs
- DataObject.cs
- WebPartManagerInternals.cs
- FileRecordSequence.cs
- ToolStripDropDownClosedEventArgs.cs
- Hashtable.cs
- ProfileService.cs
- TextServicesPropertyRanges.cs
- CacheDependency.cs
- ColorDialog.cs
- VisualStateManager.cs
- LinearGradientBrush.cs
- DynamicResourceExtensionConverter.cs
- XmlSchemaIdentityConstraint.cs
- DataViewListener.cs
- LayoutTable.cs
- ForeignConstraint.cs
- ScriptHandlerFactory.cs
- VoiceInfo.cs
- ManagedIStream.cs
- PerformanceCounter.cs
- PrincipalPermissionMode.cs
- SqlConnectionHelper.cs
- SafeHandles.cs
- Authorization.cs
- CommandHelper.cs
- DataGridViewColumnCollection.cs
- SiteMapDataSourceView.cs
- DecoderBestFitFallback.cs
- GenericsInstances.cs
- Helpers.cs
- SHA1CryptoServiceProvider.cs
- ExpressionBindingCollection.cs
- RequestUriProcessor.cs
- SchemaNames.cs
- ServiceContractDetailViewControl.cs
- SqlDataSourceSelectingEventArgs.cs
- _UriTypeConverter.cs
- WindowsFormsHelpers.cs
- SrgsDocumentParser.cs
- SkinBuilder.cs
- XmlUTF8TextReader.cs
- DataSourceProvider.cs
- Number.cs
- TdsParameterSetter.cs
- LineInfo.cs
- FramingEncoders.cs
- DLinqTableProvider.cs
- AuthorizationSection.cs
- WebPartVerbCollection.cs
- NavigationFailedEventArgs.cs
- CacheChildrenQuery.cs
- HeaderCollection.cs
- SerializerDescriptor.cs
- UITypeEditor.cs
- TextTreeTextNode.cs
- ProcessRequestArgs.cs
- DataSourceCache.cs
- WorkflowMessageEventHandler.cs
- UnauthorizedWebPart.cs
- SettingsBindableAttribute.cs
- TextElementAutomationPeer.cs
- SafeEventLogReadHandle.cs
- FontWeights.cs
- RunWorkerCompletedEventArgs.cs
- BrowserDefinition.cs
- DataGridCellAutomationPeer.cs
- DataPointer.cs
- ListViewInsertionMark.cs
- ICspAsymmetricAlgorithm.cs
- FunctionCommandText.cs
- SoapIgnoreAttribute.cs