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
- EditorZone.cs
- SimpleWebHandlerParser.cs
- CounterSampleCalculator.cs
- storepermissionattribute.cs
- CriticalFinalizerObject.cs
- GridViewPageEventArgs.cs
- _Rfc2616CacheValidators.cs
- PasswordDeriveBytes.cs
- StreamGeometry.cs
- ToggleButtonAutomationPeer.cs
- ProcessModule.cs
- DESCryptoServiceProvider.cs
- AdPostCacheSubstitution.cs
- Operand.cs
- ListItem.cs
- InfoCardRSACryptoProvider.cs
- InstanceCreationEditor.cs
- CacheOutputQuery.cs
- SectionUpdates.cs
- SapiGrammar.cs
- GridViewColumnHeader.cs
- TextEditorTables.cs
- ButtonBase.cs
- ActionFrame.cs
- CultureInfoConverter.cs
- CurrentTimeZone.cs
- ResourceExpressionBuilder.cs
- CacheModeConverter.cs
- StandardTransformFactory.cs
- WSIdentityFaultException.cs
- ObjectDataSourceFilteringEventArgs.cs
- XmlNamespaceManager.cs
- FormatterConverter.cs
- MetadataException.cs
- EntityContainerAssociationSet.cs
- ConfigurationLocation.cs
- CharStorage.cs
- CustomAttributeFormatException.cs
- CookieHandler.cs
- UnsafePeerToPeerMethods.cs
- HostedHttpTransportManager.cs
- ControlBuilderAttribute.cs
- InternalDispatchObject.cs
- ThreadStateException.cs
- StaticTextPointer.cs
- MsmqProcessProtocolHandler.cs
- ResolveMatchesMessageCD1.cs
- DoubleLinkList.cs
- ConstNode.cs
- MemberAccessException.cs
- GridPattern.cs
- TimeSpanMinutesConverter.cs
- ButtonBase.cs
- FieldNameLookup.cs
- InternalSafeNativeMethods.cs
- PageAction.cs
- SystemTcpStatistics.cs
- HtmlHead.cs
- ToolStripRenderer.cs
- XmlBinaryReader.cs
- DescendantOverDescendantQuery.cs
- AnchorEditor.cs
- DateTimeConstantAttribute.cs
- FontStretches.cs
- FillRuleValidation.cs
- EventMappingSettings.cs
- DataGridAutoGeneratingColumnEventArgs.cs
- BaseParagraph.cs
- StringFormat.cs
- DataGridViewColumnDesigner.cs
- RecordManager.cs
- LocalClientSecuritySettings.cs
- SelectionUIHandler.cs
- DataGridColumnEventArgs.cs
- GreenMethods.cs
- InternalPermissions.cs
- LogExtent.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- CompilerGeneratedAttribute.cs
- BindToObject.cs
- BitmapCache.cs
- ReliabilityContractAttribute.cs
- IconBitmapDecoder.cs
- CodeIdentifier.cs
- FixedHyperLink.cs
- FileReader.cs
- HashMembershipCondition.cs
- TabControlEvent.cs
- ExtendedProperty.cs
- ComponentConverter.cs
- NetworkInformationPermission.cs
- EarlyBoundInfo.cs
- shaperfactoryquerycachekey.cs
- figurelength.cs
- EventKeyword.cs
- StreamInfo.cs
- WinFormsSpinner.cs
- ConvertTextFrag.cs
- ProfileParameter.cs
- TargetParameterCountException.cs