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
- XmlDataLoader.cs
- UnauthorizedAccessException.cs
- Command.cs
- MenuItemStyle.cs
- SchemaAttDef.cs
- BitmapEffectInputConnector.cs
- RelatedImageListAttribute.cs
- ZipIOExtraField.cs
- MsmqAppDomainProtocolHandler.cs
- CursorConverter.cs
- UrlMapping.cs
- ControlCommandSet.cs
- DesignerAdapterAttribute.cs
- XslTransform.cs
- AppearanceEditorPart.cs
- AttributeEmitter.cs
- TimeSpanMinutesConverter.cs
- MLangCodePageEncoding.cs
- CompilerCollection.cs
- Stack.cs
- SoapIncludeAttribute.cs
- ThemeableAttribute.cs
- CompatibleIComparer.cs
- XmlNodeComparer.cs
- RequiredAttributeAttribute.cs
- MimeObjectFactory.cs
- ErrorInfoXmlDocument.cs
- Label.cs
- StringOutput.cs
- Compress.cs
- GroupItemAutomationPeer.cs
- Int64.cs
- DockAndAnchorLayout.cs
- _ProxyChain.cs
- DictionaryEntry.cs
- SettingsBase.cs
- HttpModuleCollection.cs
- OleDbParameter.cs
- Metafile.cs
- HelloOperationCD1AsyncResult.cs
- precedingsibling.cs
- AnimationStorage.cs
- Update.cs
- FormView.cs
- TextBreakpoint.cs
- ScrollProviderWrapper.cs
- LogicalTreeHelper.cs
- ToolStripRenderer.cs
- PackageFilter.cs
- DBPropSet.cs
- XmlNamespaceMapping.cs
- ManipulationPivot.cs
- FilterQuery.cs
- ReadOnlyPropertyMetadata.cs
- AddInSegmentDirectoryNotFoundException.cs
- ElementHostAutomationPeer.cs
- MobileUserControl.cs
- OrderablePartitioner.cs
- DataGridViewElement.cs
- ErasingStroke.cs
- AttachedPropertyBrowsableAttribute.cs
- Stroke.cs
- WindowPattern.cs
- Margins.cs
- StorageFunctionMapping.cs
- FixUp.cs
- FormsAuthenticationConfiguration.cs
- AssemblyBuilder.cs
- log.cs
- MatrixAnimationBase.cs
- ListBindableAttribute.cs
- ToolStripItemRenderEventArgs.cs
- TextParaLineResult.cs
- PartBasedPackageProperties.cs
- DynamicPhysicalDiscoSearcher.cs
- ComponentChangedEvent.cs
- HttpCachePolicy.cs
- ImageListStreamer.cs
- Thickness.cs
- StrokeIntersection.cs
- ServiceNameCollection.cs
- Decoder.cs
- DataGridViewCell.cs
- TrackingLocationCollection.cs
- ItemsControl.cs
- DataControlReferenceCollection.cs
- OletxCommittableTransaction.cs
- XPathChildIterator.cs
- SystemIcmpV4Statistics.cs
- XAMLParseException.cs
- BuildDependencySet.cs
- CalendarTable.cs
- DiscreteKeyFrames.cs
- HandoffBehavior.cs
- ReaderOutput.cs
- CatalogZoneAutoFormat.cs
- ValidatorCompatibilityHelper.cs
- UIAgentRequest.cs
- DataSpaceManager.cs
- HitTestWithPointDrawingContextWalker.cs