Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / 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. //------------------------------------------------------------------------------ //// 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
- SyndicationSerializer.cs
- Transform3D.cs
- PrimarySelectionGlyph.cs
- BindingExpression.cs
- ITreeGenerator.cs
- XmlElementAttributes.cs
- XmlDataImplementation.cs
- XmlConvert.cs
- ChineseLunisolarCalendar.cs
- XmlNamespaceMappingCollection.cs
- ContainerVisual.cs
- ExpandableObjectConverter.cs
- ExpressionBuilder.cs
- DataBoundControlHelper.cs
- SymmetricAlgorithm.cs
- SmiMetaDataProperty.cs
- DecoratedNameAttribute.cs
- DoubleKeyFrameCollection.cs
- TreeBuilder.cs
- OleDbError.cs
- FormViewInsertedEventArgs.cs
- QueryParameter.cs
- UpdatePanelTrigger.cs
- ResourceContainer.cs
- ByteKeyFrameCollection.cs
- HandledMouseEvent.cs
- ConnectionManagementElement.cs
- JsonQNameDataContract.cs
- ListView.cs
- DateTimeFormatInfoScanner.cs
- HyperLink.cs
- Avt.cs
- ToolStripPanelRenderEventArgs.cs
- RenameRuleObjectDialog.Designer.cs
- PerformanceCounterCategory.cs
- PowerModeChangedEventArgs.cs
- DetailsViewUpdatedEventArgs.cs
- ActivityCollectionMarkupSerializer.cs
- BmpBitmapEncoder.cs
- MappingMetadataHelper.cs
- Fonts.cs
- DefaultPrintController.cs
- SpecialNameAttribute.cs
- InfoCardTraceRecord.cs
- IpcServerChannel.cs
- RegionIterator.cs
- DirectoryNotFoundException.cs
- CheckBoxAutomationPeer.cs
- ListViewInsertionMark.cs
- StickyNoteHelper.cs
- sortedlist.cs
- PersistenceTypeAttribute.cs
- ObjectResult.cs
- UserNamePasswordValidator.cs
- WebBrowserPermission.cs
- StorageMappingItemLoader.cs
- ThreadInterruptedException.cs
- CodeObjectCreateExpression.cs
- StringValidatorAttribute.cs
- StoreAnnotationsMap.cs
- SiteOfOriginContainer.cs
- Section.cs
- KnownBoxes.cs
- PropertyMapper.cs
- DoubleLinkList.cs
- SQLBoolean.cs
- ResXFileRef.cs
- GridItemPattern.cs
- UInt32.cs
- HttpResponseWrapper.cs
- ClientTargetSection.cs
- FileUtil.cs
- _emptywebproxy.cs
- InkCanvas.cs
- Document.cs
- Speller.cs
- HttpWriter.cs
- GridViewColumnCollection.cs
- TextFormattingConverter.cs
- SerializationFieldInfo.cs
- RuntimeDelegateArgument.cs
- XmlSchemaSet.cs
- BuilderInfo.cs
- UIElementCollection.cs
- DownloadProgressEventArgs.cs
- ArgumentOutOfRangeException.cs
- X509SecurityToken.cs
- RoutingChannelExtension.cs
- __Filters.cs
- WindowsFont.cs
- XmlUtf8RawTextWriter.cs
- WebPartEventArgs.cs
- FormViewCommandEventArgs.cs
- ProcessHostConfigUtils.cs
- ActivityPreviewDesigner.cs
- AuthStoreRoleProvider.cs
- NativeMethods.cs
- RectangleConverter.cs
- ImageListStreamer.cs
- Vector3D.cs