Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / Util / DoubleLink.cs / 1 / DoubleLink.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
* DoubleLink
*
* Copyright (c) 1998-1999, Microsoft Corporation
*
*/
namespace System.Web.Util {
using System.Runtime.Serialization.Formatters;
internal class DoubleLink {
internal DoubleLink _next, _prev;
internal Object Item;
internal DoubleLink() {
_next = _prev = this;
}
internal DoubleLink(Object item) : this() {
this.Item = item;
}
internal DoubleLink Next {get {return _next;}}
#if UNUSED_CODE
internal DoubleLink Prev {get {return _prev;}}
#endif
internal void InsertAfter(DoubleLink after) {
this._prev = after;
this._next = after._next;
after._next = this;
this._next._prev = this;
}
internal void InsertBefore(DoubleLink before) {
this._prev = before._prev;
this._next = before;
before._prev = this;
this._prev._next = this;
}
internal void Remove() {
this._prev._next = this._next;
this._next._prev = this._prev;
_next = _prev = this;
}
#if DBG
internal virtual void DebugValidate() {
Debug.CheckValid(this._next != this || this._prev == this, "Invalid link");
}
internal virtual string DebugDescription(string indent) {
string desc;
desc = indent + "_next=" + _next + ", _prev=" + _prev + "\nItem=";
desc += Debug.GetDescription(Item, indent + " ");
return desc;
}
#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
- loginstatus.cs
- CompositeActivityCodeGenerator.cs
- SqlCacheDependency.cs
- MatrixTransform3D.cs
- AsyncDataRequest.cs
- WindowsFormsHelpers.cs
- Keywords.cs
- DbProviderFactoriesConfigurationHandler.cs
- SqlDuplicator.cs
- DataServiceEntityAttribute.cs
- XmlSchemaAttribute.cs
- X509CertificateValidator.cs
- Int64Storage.cs
- XmlSigningNodeWriter.cs
- BamlLocalizationDictionary.cs
- CompModSwitches.cs
- MetadataPropertyvalue.cs
- wgx_commands.cs
- FormViewPageEventArgs.cs
- XsdDateTime.cs
- Floater.cs
- XmlStreamStore.cs
- DbReferenceCollection.cs
- WebPartRestoreVerb.cs
- SecurityException.cs
- AddingNewEventArgs.cs
- ErrorRuntimeConfig.cs
- UIElementParagraph.cs
- SamlConstants.cs
- CallTemplateAction.cs
- SafeNativeMethods.cs
- TextTreeTextNode.cs
- ListControl.cs
- TargetControlTypeAttribute.cs
- SmiMetaDataProperty.cs
- AssemblyCollection.cs
- CustomTrackingQuery.cs
- KeyedByTypeCollection.cs
- HtmlTableRowCollection.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- VectorKeyFrameCollection.cs
- XmlComment.cs
- DataObjectFieldAttribute.cs
- BuildResult.cs
- StrokeCollection.cs
- ConfigurationLocationCollection.cs
- FixedDocumentPaginator.cs
- InfoCardTrace.cs
- TimeSpanStorage.cs
- XmlDataCollection.cs
- ToolboxItemFilterAttribute.cs
- SocketPermission.cs
- RequestQueue.cs
- AssemblyBuilder.cs
- XmlSchemaSimpleTypeRestriction.cs
- PerfService.cs
- SubMenuStyle.cs
- ColumnClickEvent.cs
- ListViewEditEventArgs.cs
- LabelDesigner.cs
- GridViewRowPresenter.cs
- VBCodeProvider.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- PageCatalogPart.cs
- ContentPlaceHolder.cs
- UnmanagedMemoryStream.cs
- LabelDesigner.cs
- Instrumentation.cs
- Line.cs
- DbConnectionHelper.cs
- TypeNameConverter.cs
- SessionEndedEventArgs.cs
- WinEventQueueItem.cs
- IISUnsafeMethods.cs
- XmlAttribute.cs
- TextParaLineResult.cs
- RecordManager.cs
- PageRequestManager.cs
- HeaderedContentControl.cs
- CrossAppDomainChannel.cs
- SupportingTokenDuplexChannel.cs
- XmlSchemaSet.cs
- UnaryExpression.cs
- ClonableStack.cs
- JournalEntryStack.cs
- HtmlInputImage.cs
- ProgressiveCrcCalculatingStream.cs
- StreamWriter.cs
- EntityStoreSchemaFilterEntry.cs
- Emitter.cs
- SchemaManager.cs
- ShaderEffect.cs
- ObjectViewEntityCollectionData.cs
- BmpBitmapEncoder.cs
- ObjectCloneHelper.cs
- AdornerHitTestResult.cs
- RC2.cs
- FullTextBreakpoint.cs
- DoubleAnimationBase.cs
- OrCondition.cs