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
- DbConnectionPoolOptions.cs
- SchemaCollectionCompiler.cs
- PersonalizationStateInfoCollection.cs
- ScriptReference.cs
- NativeMethods.cs
- QilValidationVisitor.cs
- StyleXamlTreeBuilder.cs
- RuntimeResourceSet.cs
- TextServicesManager.cs
- DbDataReader.cs
- AmbientValueAttribute.cs
- UriPrefixTable.cs
- PermissionAttributes.cs
- GlyphManager.cs
- ObjectDataSourceDesigner.cs
- ServiceOperation.cs
- TextBreakpoint.cs
- HtmlMeta.cs
- XmlAttributeAttribute.cs
- SmtpTransport.cs
- QuotedPrintableStream.cs
- KeyValuePair.cs
- DesignColumn.cs
- MeshGeometry3D.cs
- QueuePropertyVariants.cs
- diagnosticsswitches.cs
- SymLanguageType.cs
- AssemblyAttributesGoHere.cs
- CngKeyBlobFormat.cs
- SqlDependencyListener.cs
- RepeatEnumerable.cs
- UntrustedRecipientException.cs
- MouseEvent.cs
- XhtmlBasicTextViewAdapter.cs
- ContainerUtilities.cs
- HtmlFormParameterWriter.cs
- SmuggledIUnknown.cs
- CurrentChangingEventArgs.cs
- CustomBindingElementCollection.cs
- Vector.cs
- ResourceType.cs
- ISAPIApplicationHost.cs
- InheritedPropertyChangedEventArgs.cs
- DataGridPageChangedEventArgs.cs
- DiagnosticTrace.cs
- DeferredElementTreeState.cs
- ConstraintStruct.cs
- ReaderWriterLockSlim.cs
- PipelineModuleStepContainer.cs
- PropertyStore.cs
- XPathSingletonIterator.cs
- InvalidCommandTreeException.cs
- PathSegment.cs
- ArcSegment.cs
- InkPresenter.cs
- InternalBase.cs
- MouseActionConverter.cs
- Clipboard.cs
- FunctionNode.cs
- System.Data_BID.cs
- XpsImageSerializationService.cs
- QilName.cs
- QilPatternVisitor.cs
- PersistenceTypeAttribute.cs
- BaseTemplateCodeDomTreeGenerator.cs
- AxisAngleRotation3D.cs
- DataTableClearEvent.cs
- FilteredAttributeCollection.cs
- TextCompositionEventArgs.cs
- ProtocolReflector.cs
- RemotingServices.cs
- FontSourceCollection.cs
- ScrollBar.cs
- ResourceCategoryAttribute.cs
- CorrelationManager.cs
- AttributeQuery.cs
- HttpTransportElement.cs
- SponsorHelper.cs
- AccessedThroughPropertyAttribute.cs
- codemethodreferenceexpression.cs
- CheckBox.cs
- BulletedList.cs
- ConnectionOrientedTransportElement.cs
- GuidelineSet.cs
- SQLBoolean.cs
- MouseButton.cs
- ContextStaticAttribute.cs
- RuntimeVariableList.cs
- CompatibleComparer.cs
- COM2TypeInfoProcessor.cs
- NullToBooleanConverter.cs
- IdentityReference.cs
- ConditionalAttribute.cs
- HostProtectionException.cs
- XmlElementCollection.cs
- HtmlContainerControl.cs
- OptionalRstParameters.cs
- mactripleDES.cs
- LabelEditEvent.cs
- DataGridViewCellMouseEventArgs.cs