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
- CrossContextChannel.cs
- ResourceWriter.cs
- NavigationCommands.cs
- XmlDownloadManager.cs
- TextTreeDeleteContentUndoUnit.cs
- CommonDialog.cs
- DesignDataSource.cs
- CroppedBitmap.cs
- MenuStrip.cs
- PropertyCondition.cs
- CompiledQuery.cs
- CryptographicAttribute.cs
- CLSCompliantAttribute.cs
- SecurityTokenSerializer.cs
- CalculatedColumn.cs
- SurrogateSelector.cs
- StyleBamlTreeBuilder.cs
- TransformedBitmap.cs
- ToolStripPanel.cs
- AxParameterData.cs
- SiteMapNodeCollection.cs
- ControlCollection.cs
- SourceItem.cs
- XmlSerializationReader.cs
- XmlNode.cs
- MulticastDelegate.cs
- ArcSegment.cs
- ToolStripRenderer.cs
- SystemIPGlobalProperties.cs
- RelatedCurrencyManager.cs
- PageCodeDomTreeGenerator.cs
- SpecularMaterial.cs
- SiteMapNode.cs
- DesignerCategoryAttribute.cs
- EntityDataSourceStatementEditorForm.cs
- XmlWrappingReader.cs
- AmbientValueAttribute.cs
- UrlMappingCollection.cs
- GlyphingCache.cs
- PathTooLongException.cs
- RequestResizeEvent.cs
- KerberosSecurityTokenProvider.cs
- loginstatus.cs
- DelayedRegex.cs
- LabelDesigner.cs
- AnonymousIdentificationSection.cs
- SqlDependencyUtils.cs
- WhiteSpaceTrimStringConverter.cs
- GeometryHitTestResult.cs
- ComplexTypeEmitter.cs
- OdbcPermission.cs
- BufferedStream.cs
- InkCollectionBehavior.cs
- HostDesigntimeLicenseContext.cs
- DependencyPropertyKind.cs
- PreviewPageInfo.cs
- CodeConditionStatement.cs
- BuildManagerHost.cs
- SecurityTokenAuthenticator.cs
- StructuredType.cs
- FontResourceCache.cs
- AnimationLayer.cs
- KnownColorTable.cs
- DateTimeUtil.cs
- InvalidProgramException.cs
- ADMembershipUser.cs
- DrawItemEvent.cs
- Visual.cs
- AmbiguousMatchException.cs
- XmlSchemaObjectCollection.cs
- MenuAdapter.cs
- Model3DCollection.cs
- HostedTcpTransportManager.cs
- RemotingConfiguration.cs
- PagedControl.cs
- keycontainerpermission.cs
- QuotedPrintableStream.cs
- ScopeElement.cs
- WebPartConnectionsCancelEventArgs.cs
- IDataContractSurrogate.cs
- XPathNodeList.cs
- ResourcePermissionBase.cs
- DesignerTransactionCloseEvent.cs
- TypeNameConverter.cs
- SqlBooleanizer.cs
- DataRelation.cs
- ActiveXMessageFormatter.cs
- BooleanSwitch.cs
- WindowClosedEventArgs.cs
- ResourcePermissionBase.cs
- HttpConfigurationSystem.cs
- Column.cs
- ExpressionBuilderContext.cs
- CLSCompliantAttribute.cs
- Viewport3DVisual.cs
- PagerSettings.cs
- StorageComplexPropertyMapping.cs
- ColorAnimation.cs
- GroupPartitionExpr.cs
- TextTreeNode.cs