Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- SqlStream.cs
- Comparer.cs
- Vector3DAnimationUsingKeyFrames.cs
- LogExtentCollection.cs
- UniqueConstraint.cs
- ModulesEntry.cs
- MiniCustomAttributeInfo.cs
- TreeNodeClickEventArgs.cs
- StackOverflowException.cs
- PenCursorManager.cs
- DirectoryRootQuery.cs
- XmlSchemaType.cs
- AuthenticationException.cs
- GroupItemAutomationPeer.cs
- DynamicILGenerator.cs
- DataGridAutomationPeer.cs
- DateTimeStorage.cs
- TreeNodeStyle.cs
- SerTrace.cs
- CodeDomConfigurationHandler.cs
- TitleStyle.cs
- StylusCaptureWithinProperty.cs
- DBConnectionString.cs
- WindowsGraphics.cs
- QilList.cs
- NativeBuffer.cs
- XamlTypeMapper.cs
- DispatcherObject.cs
- TouchPoint.cs
- MulticastOption.cs
- Rect3DConverter.cs
- OutputCacheSettings.cs
- TreeViewImageKeyConverter.cs
- DbMetaDataColumnNames.cs
- CounterCreationDataCollection.cs
- Matrix3DValueSerializer.cs
- ThemeDirectoryCompiler.cs
- FunctionDetailsReader.cs
- XpsException.cs
- SingleConverter.cs
- NoneExcludedImageIndexConverter.cs
- SqlDataSourceConnectionPanel.cs
- GeneralTransform2DTo3DTo2D.cs
- SessionEndingCancelEventArgs.cs
- DurableRuntimeValidator.cs
- PageClientProxyGenerator.cs
- FileResponseElement.cs
- SQLInt64.cs
- DataGrid.cs
- EventProviderWriter.cs
- UmAlQuraCalendar.cs
- RegexNode.cs
- ByteAnimationUsingKeyFrames.cs
- DataGridHeadersVisibilityToVisibilityConverter.cs
- SecurityTokenContainer.cs
- MaskedTextBoxTextEditorDropDown.cs
- TypeReference.cs
- WorkflowHostingResponseContext.cs
- ProfileModule.cs
- StreamHelper.cs
- basecomparevalidator.cs
- DataSysAttribute.cs
- DynamicDataResources.Designer.cs
- DataServiceQuery.cs
- StandardOleMarshalObject.cs
- FindCriteria.cs
- EditBehavior.cs
- Style.cs
- Grid.cs
- sortedlist.cs
- securitycriticaldataClass.cs
- Inflater.cs
- ArgumentException.cs
- ReadOnlyDataSourceView.cs
- RangeContentEnumerator.cs
- XNameTypeConverter.cs
- FieldNameLookup.cs
- CancellationScope.cs
- GlobalizationAssembly.cs
- LogLogRecord.cs
- Zone.cs
- WebPartZoneDesigner.cs
- URL.cs
- TdsRecordBufferSetter.cs
- ArrayItemValue.cs
- AggregateException.cs
- AnnotationMap.cs
- RemotingService.cs
- SecurityHelper.cs
- HealthMonitoringSectionHelper.cs
- WindowsProgressbar.cs
- QueryContinueDragEvent.cs
- Geometry3D.cs
- DataGridViewCell.cs
- PasswordRecoveryAutoFormat.cs
- EntityDataSourceDesignerHelper.cs
- StoreItemCollection.cs
- _PooledStream.cs
- EditingMode.cs
- BoundPropertyEntry.cs