Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Util / DoubleLinkListEnumerator.cs / 1305376 / 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; } } } // 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; } } } // 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
- HMACRIPEMD160.cs
- SafeNativeMethods.cs
- SubclassTypeValidator.cs
- DurableEnlistmentState.cs
- ColumnWidthChangedEvent.cs
- TemplateField.cs
- ProcessHostServerConfig.cs
- LogStore.cs
- wgx_render.cs
- LambdaCompiler.ControlFlow.cs
- WindowsEditBox.cs
- StreamSecurityUpgradeAcceptorBase.cs
- Geometry3D.cs
- FlowLayout.cs
- RoutingTable.cs
- Calendar.cs
- DesignerActionList.cs
- HttpCacheVary.cs
- RemoteHelper.cs
- StopStoryboard.cs
- EntityDataSourceChangedEventArgs.cs
- KeyTime.cs
- ChildTable.cs
- _UriSyntax.cs
- CompilerGlobalScopeAttribute.cs
- InfiniteIntConverter.cs
- SafeEventLogReadHandle.cs
- GenerateTemporaryTargetAssembly.cs
- DataKeyCollection.cs
- SqlNode.cs
- SmiTypedGetterSetter.cs
- PrincipalPermission.cs
- WsdlBuildProvider.cs
- Inline.cs
- AutoGeneratedFieldProperties.cs
- Size3D.cs
- HandledEventArgs.cs
- SHA1.cs
- StateInitializationDesigner.cs
- HtmlSelectionListAdapter.cs
- KeyToListMap.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- XhtmlTextWriter.cs
- XmlObjectSerializerReadContextComplex.cs
- MetadataItemEmitter.cs
- X509UI.cs
- DataPagerField.cs
- SyndicationPerson.cs
- DataGridView.cs
- PauseStoryboard.cs
- SqlConnectionManager.cs
- AccessedThroughPropertyAttribute.cs
- RowToParametersTransformer.cs
- RSAOAEPKeyExchangeDeformatter.cs
- PermissionRequestEvidence.cs
- ModelService.cs
- MouseGesture.cs
- SimpleWorkerRequest.cs
- ManagedWndProcTracker.cs
- ObjectDataSourceMethodEditor.cs
- SerializerDescriptor.cs
- WorkflowControlEndpoint.cs
- EditorBrowsableAttribute.cs
- HandlerBase.cs
- XamlPoint3DCollectionSerializer.cs
- MediaPlayerState.cs
- DataGridClipboardCellContent.cs
- ScrollProviderWrapper.cs
- XmlSchemaChoice.cs
- TextElementEditingBehaviorAttribute.cs
- UserControlBuildProvider.cs
- WebServiceData.cs
- HostProtectionException.cs
- NonSerializedAttribute.cs
- TemplateControl.cs
- WebPartExportVerb.cs
- IdentityNotMappedException.cs
- ServiceParser.cs
- ClickablePoint.cs
- ReachFixedPageSerializer.cs
- GridViewItemAutomationPeer.cs
- GraphicsContainer.cs
- ServiceProviders.cs
- NonParentingControl.cs
- OneOfElement.cs
- RestHandler.cs
- DesignerCategoryAttribute.cs
- ISCIIEncoding.cs
- IndentTextWriter.cs
- PropertyInfoSet.cs
- DelegateBodyWriter.cs
- ServicePointManagerElement.cs
- SubMenuStyleCollection.cs
- Set.cs
- TemplateControlBuildProvider.cs
- Point3D.cs
- RSACryptoServiceProvider.cs
- ObjectContextServiceProvider.cs
- ColorConvertedBitmapExtension.cs
- DataBoundControlHelper.cs