Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- XsdBuildProvider.cs
- OracleDateTime.cs
- PagesSection.cs
- ProcessManager.cs
- WebRequest.cs
- WithParamAction.cs
- MasterPageCodeDomTreeGenerator.cs
- SmtpReplyReader.cs
- Helpers.cs
- DelegateSerializationHolder.cs
- BoundingRectTracker.cs
- XPathNavigatorReader.cs
- ResolveCriteria.cs
- XmlAnyAttributeAttribute.cs
- Quad.cs
- XappLauncher.cs
- LogicalExpr.cs
- EncoderNLS.cs
- QueryContinueDragEventArgs.cs
- XmlTypeMapping.cs
- PackagePartCollection.cs
- CurrencyManager.cs
- OSFeature.cs
- SQLMoney.cs
- HttpServerVarsCollection.cs
- ResourcePermissionBase.cs
- NamespaceEmitter.cs
- WebPartMenu.cs
- ClockGroup.cs
- XsdSchemaFileEditor.cs
- ItemsPresenter.cs
- AbsoluteQuery.cs
- CodeArgumentReferenceExpression.cs
- WindowsListViewGroup.cs
- ExceptionHandlersDesigner.cs
- XmlHierarchyData.cs
- QuaternionAnimationBase.cs
- XmlSchemaFacet.cs
- SqlCacheDependencyDatabase.cs
- DocumentXmlWriter.cs
- MethodBuilderInstantiation.cs
- Popup.cs
- Compiler.cs
- GraphicsContext.cs
- BaseAutoFormat.cs
- MemberAccessException.cs
- DrawingImage.cs
- XmlSchemaSequence.cs
- PrintDocument.cs
- XPathScanner.cs
- XmlCountingReader.cs
- SingleTagSectionHandler.cs
- CodeGen.cs
- FrameworkContextData.cs
- ProfileBuildProvider.cs
- AutomationPatternInfo.cs
- VirtualDirectoryMapping.cs
- GlyphRunDrawing.cs
- IndexedSelectQueryOperator.cs
- CalendarTable.cs
- ContourSegment.cs
- WebServiceHostFactory.cs
- DbParameterCollection.cs
- UrlMapping.cs
- PostBackOptions.cs
- StreamGeometry.cs
- DateTimeStorage.cs
- MimeTypePropertyAttribute.cs
- ControlType.cs
- LogWriteRestartAreaState.cs
- PrefixHandle.cs
- FieldNameLookup.cs
- LiteralControl.cs
- NamedPipeAppDomainProtocolHandler.cs
- BamlRecordWriter.cs
- ReferentialConstraint.cs
- COAUTHINFO.cs
- CodeCatchClause.cs
- DataGridViewColumnConverter.cs
- RectangleF.cs
- TraceContextEventArgs.cs
- Drawing.cs
- FreezableOperations.cs
- ResolveCompletedEventArgs.cs
- NamespaceList.cs
- TypeSource.cs
- PackageProperties.cs
- DataGridViewCheckBoxCell.cs
- MetaForeignKeyColumn.cs
- IDReferencePropertyAttribute.cs
- MessageDecoder.cs
- RangeBase.cs
- smtpconnection.cs
- VectorCollectionValueSerializer.cs
- x509store.cs
- TypeKeyValue.cs
- TreeIterators.cs
- CdpEqualityComparer.cs
- DefaultTextStore.cs
- DataStreamFromComStream.cs