Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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. // //----------------------------------------------------------------------------- /* * 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- KeyFrames.cs
- WebPartConnectionsCancelVerb.cs
- XpsSerializationException.cs
- BooleanSwitch.cs
- WriteTimeStream.cs
- WebConfigurationManager.cs
- TransformPatternIdentifiers.cs
- COMException.cs
- Mapping.cs
- SplitContainerDesigner.cs
- SiteMapNodeItem.cs
- XmlIterators.cs
- TreeNode.cs
- ToolStripLocationCancelEventArgs.cs
- UdpRetransmissionSettings.cs
- ColorAnimation.cs
- DbMetaDataCollectionNames.cs
- Baml2006SchemaContext.cs
- SharedStatics.cs
- SQLBinaryStorage.cs
- HttpCookiesSection.cs
- EntityViewGenerationConstants.cs
- Header.cs
- ToolStripSettings.cs
- SecUtil.cs
- IxmlLineInfo.cs
- XmlSerializationWriter.cs
- WebRequest.cs
- SetterBaseCollection.cs
- RenderTargetBitmap.cs
- MergeFilterQuery.cs
- RenderContext.cs
- CultureInfoConverter.cs
- HttpContextServiceHost.cs
- DataGridViewCellParsingEventArgs.cs
- MemoryStream.cs
- CorrelationRequestContext.cs
- ProtocolProfile.cs
- HttpWebRequestElement.cs
- TextChange.cs
- DrawingGroupDrawingContext.cs
- HandlerBase.cs
- RectangleConverter.cs
- RetrieveVirtualItemEventArgs.cs
- SafeHandle.cs
- UInt64Storage.cs
- HttpResponseBase.cs
- SettingsAttributes.cs
- ToolBar.cs
- AffineTransform3D.cs
- CodeDelegateInvokeExpression.cs
- XamlHostingSectionGroup.cs
- PartialToken.cs
- RoutedUICommand.cs
- CookieProtection.cs
- SmiRequestExecutor.cs
- SubpageParagraph.cs
- ClientSession.cs
- XMLDiffLoader.cs
- TimeIntervalCollection.cs
- ValidatingReaderNodeData.cs
- DockProviderWrapper.cs
- MultiAsyncResult.cs
- oledbmetadatacolumnnames.cs
- ScrollItemPatternIdentifiers.cs
- FixUp.cs
- DataViewSetting.cs
- WebPageTraceListener.cs
- EmptyWorkItem.cs
- MenuItemStyleCollection.cs
- serverconfig.cs
- Enumerable.cs
- TrackingCondition.cs
- StaticResourceExtension.cs
- TextTreeObjectNode.cs
- JsonGlobals.cs
- XpsFilter.cs
- ConfigurationPropertyCollection.cs
- DataExpression.cs
- AnnotationDocumentPaginator.cs
- WebRequest.cs
- CapiHashAlgorithm.cs
- OAVariantLib.cs
- TextTreeRootNode.cs
- XmlEntityReference.cs
- SystemWebExtensionsSectionGroup.cs
- SettingsSection.cs
- XmlSchemaObjectTable.cs
- NetworkAddressChange.cs
- SqlDataSource.cs
- Unit.cs
- TypeBuilderInstantiation.cs
- StateDesigner.LayoutSelectionGlyph.cs
- __ConsoleStream.cs
- NgenServicingAttributes.cs
- ItemsControlAutomationPeer.cs
- RSAOAEPKeyExchangeDeformatter.cs
- MethodToken.cs
- ControllableStoryboardAction.cs
- SafeWaitHandle.cs