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
- Matrix3DConverter.cs
- CookieParameter.cs
- SelectionEditor.cs
- Image.cs
- CellParagraph.cs
- TextCompositionEventArgs.cs
- DesignerRegionCollection.cs
- SectionRecord.cs
- Inline.cs
- ColumnMapProcessor.cs
- XmlSchemaSimpleContentRestriction.cs
- SqlTypeConverter.cs
- BatchParser.cs
- SendActivityValidator.cs
- Metadata.cs
- ForceCopyBuildProvider.cs
- QilIterator.cs
- CorrelationTokenTypeConvertor.cs
- ByteStack.cs
- EventLogEntryCollection.cs
- Location.cs
- ComponentCommands.cs
- SqlConnection.cs
- ContextStack.cs
- StylusShape.cs
- SessionParameter.cs
- CodeSubDirectoriesCollection.cs
- DisableDpiAwarenessAttribute.cs
- CoreSwitches.cs
- Accessible.cs
- TransformerInfo.cs
- _KerberosClient.cs
- SystemNetworkInterface.cs
- CLRBindingWorker.cs
- CodeDomConfigurationHandler.cs
- SqlDataReaderSmi.cs
- FormViewDeleteEventArgs.cs
- MediaPlayer.cs
- CompoundFileReference.cs
- HtmlInputHidden.cs
- TextSelectionHighlightLayer.cs
- GridView.cs
- KeyEventArgs.cs
- HashUtility.cs
- MarginCollapsingState.cs
- OracleCommandBuilder.cs
- OracleTimeSpan.cs
- RemoteWebConfigurationHostServer.cs
- TargetFrameworkAttribute.cs
- TdsParserStateObject.cs
- EventNotify.cs
- InstanceValue.cs
- Axis.cs
- ContextMarshalException.cs
- ProfileSection.cs
- XmlSchemaSimpleTypeRestriction.cs
- AppDomainAttributes.cs
- DoubleSumAggregationOperator.cs
- DateTimePicker.cs
- WebBrowser.cs
- SparseMemoryStream.cs
- Latin1Encoding.cs
- XmlDataProvider.cs
- IDReferencePropertyAttribute.cs
- Matrix3D.cs
- AxisAngleRotation3D.cs
- ListChangedEventArgs.cs
- SafeNativeMemoryHandle.cs
- SoapAttributes.cs
- DisplayMemberTemplateSelector.cs
- WebPartTransformer.cs
- TextTreeNode.cs
- DataColumnCollection.cs
- AllMembershipCondition.cs
- OperationResponse.cs
- MailMessageEventArgs.cs
- FormView.cs
- ExeContext.cs
- XPathChildIterator.cs
- GcHandle.cs
- ModelToObjectValueConverter.cs
- WebPartEventArgs.cs
- DataRow.cs
- WinInet.cs
- QueryOutputWriter.cs
- basenumberconverter.cs
- AspNetSynchronizationContext.cs
- ImageDrawing.cs
- XmlKeywords.cs
- KoreanCalendar.cs
- Mouse.cs
- ToolBar.cs
- ObjectStateManagerMetadata.cs
- MaskInputRejectedEventArgs.cs
- StaticFileHandler.cs
- ToolStripDropDown.cs
- EdmItemCollection.cs
- TextBounds.cs
- DigitShape.cs
- FixedElement.cs