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
- TypefaceCollection.cs
- ResXDataNode.cs
- ListViewItem.cs
- LightweightCodeGenerator.cs
- DeviceContext.cs
- IntSecurity.cs
- BuildResultCache.cs
- SqlBulkCopyColumnMapping.cs
- FileDialogPermission.cs
- MemoryFailPoint.cs
- ReadOnlyDataSource.cs
- DoubleLink.cs
- TextRunTypographyProperties.cs
- _FtpControlStream.cs
- TrackBarRenderer.cs
- TypeUtil.cs
- MethodCallConverter.cs
- Menu.cs
- PageAsyncTaskManager.cs
- SrgsElement.cs
- DeploymentSection.cs
- InfoCardCryptoHelper.cs
- CLRBindingWorker.cs
- CapacityStreamGeometryContext.cs
- NetworkAddressChange.cs
- PeerNearMe.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- JavascriptXmlWriterWrapper.cs
- RowToFieldTransformer.cs
- ReachPageContentSerializer.cs
- Imaging.cs
- ComplexBindingPropertiesAttribute.cs
- QueryOutputWriter.cs
- GroupItemAutomationPeer.cs
- ReaderContextStackData.cs
- SynthesizerStateChangedEventArgs.cs
- EntityDataSourceSelectedEventArgs.cs
- WeakReferenceEnumerator.cs
- BufferedStream.cs
- ScriptingProfileServiceSection.cs
- TypedDataSetSchemaImporterExtension.cs
- IProvider.cs
- InfoCardRSACryptoProvider.cs
- FontFaceLayoutInfo.cs
- WebEventCodes.cs
- TransformProviderWrapper.cs
- X509SecurityToken.cs
- ProviderUtil.cs
- ObsoleteAttribute.cs
- AccessViolationException.cs
- XmlResolver.cs
- SqlCommandAsyncResult.cs
- GcHandle.cs
- XsdDuration.cs
- _ContextAwareResult.cs
- ConfigurationManagerHelper.cs
- BindValidator.cs
- SmtpLoginAuthenticationModule.cs
- ArraySortHelper.cs
- DesignerActionUIStateChangeEventArgs.cs
- SqlBuffer.cs
- OleDbRowUpdatedEvent.cs
- Int32Rect.cs
- AdapterDictionary.cs
- CharacterString.cs
- InstanceValue.cs
- PerfCounters.cs
- XmlSchemaGroup.cs
- QueryContinueDragEventArgs.cs
- XmlMapping.cs
- StyleHelper.cs
- ServiceReference.cs
- CodeVariableReferenceExpression.cs
- RoleManagerEventArgs.cs
- ConfigXmlAttribute.cs
- XmlMessageFormatter.cs
- EditorAttributeInfo.cs
- CommunicationObjectFaultedException.cs
- WebResponse.cs
- PriorityBindingExpression.cs
- TreeNodeCollection.cs
- DataGridViewCellPaintingEventArgs.cs
- RadialGradientBrush.cs
- DecoderReplacementFallback.cs
- MarshalByRefObject.cs
- TerminatorSinks.cs
- ZipFileInfo.cs
- EditorZoneBase.cs
- GridLength.cs
- ReachUIElementCollectionSerializer.cs
- UntypedNullExpression.cs
- WMIInterop.cs
- Message.cs
- NameSpaceEvent.cs
- PipelineComponent.cs
- FixedNode.cs
- IInstanceTable.cs
- log.cs
- ScrollPatternIdentifiers.cs
- DataGridRelationshipRow.cs