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
- XmlSchemaComplexContentExtension.cs
- X509CertificateCollection.cs
- BindingSource.cs
- Int16AnimationUsingKeyFrames.cs
- HttpStreamXmlDictionaryWriter.cs
- DefaultEvaluationContext.cs
- ExpressionQuoter.cs
- NumberSubstitution.cs
- DBCommandBuilder.cs
- LayoutEvent.cs
- DebugInfoExpression.cs
- AlphabeticalEnumConverter.cs
- QueryOptionExpression.cs
- Point3DAnimationUsingKeyFrames.cs
- SHA384CryptoServiceProvider.cs
- VectorCollection.cs
- ChannelSinkStacks.cs
- HttpCacheVaryByContentEncodings.cs
- HashSetDebugView.cs
- JsonDeserializer.cs
- Italic.cs
- SafeBitVector32.cs
- oledbmetadatacollectionnames.cs
- SslStreamSecurityUpgradeProvider.cs
- WSHttpBindingElement.cs
- EdmComplexTypeAttribute.cs
- NegatedConstant.cs
- DocobjHost.cs
- ControlBindingsConverter.cs
- DataBoundControlHelper.cs
- ActivityStateRecord.cs
- Number.cs
- Bits.cs
- FontConverter.cs
- ProcessRequestArgs.cs
- CheckedPointers.cs
- GlobalItem.cs
- WindowsListView.cs
- __Filters.cs
- IncrementalReadDecoders.cs
- BigInt.cs
- TreeView.cs
- StatusBarPanelClickEvent.cs
- UITypeEditors.cs
- Html32TextWriter.cs
- LoginDesignerUtil.cs
- ListItemParagraph.cs
- HotCommands.cs
- SignedXml.cs
- ExpressionBuilder.cs
- NumberSubstitution.cs
- SharedStream.cs
- ArgumentException.cs
- DocumentCollection.cs
- ProgressBarAutomationPeer.cs
- FixUpCollection.cs
- FieldToken.cs
- ExceptionUtil.cs
- CTreeGenerator.cs
- lengthconverter.cs
- SafeNativeMethods.cs
- RowUpdatingEventArgs.cs
- DeviceSpecificDialogCachedState.cs
- GenericFlowSwitchHelper.cs
- TableParagraph.cs
- GridView.cs
- WebPartDisplayModeCancelEventArgs.cs
- TagMapCollection.cs
- FixedPageStructure.cs
- EntityStoreSchemaGenerator.cs
- PreviewPageInfo.cs
- PrivilegedConfigurationManager.cs
- TreeBuilderBamlTranslator.cs
- Pens.cs
- BoundField.cs
- HostedElements.cs
- XmlSerializationReader.cs
- ModelUtilities.cs
- wmiprovider.cs
- ConsoleKeyInfo.cs
- PointLight.cs
- PasswordRecoveryDesigner.cs
- MasterPageBuildProvider.cs
- MSAAWinEventWrap.cs
- EdmError.cs
- ControlCollection.cs
- Stack.cs
- OperationContractAttribute.cs
- EntityContainerEmitter.cs
- WebBrowserEvent.cs
- Event.cs
- Pair.cs
- EditorPartChrome.cs
- ConnectionAcceptor.cs
- CellParagraph.cs
- SubpageParaClient.cs
- MailMessage.cs
- EventToken.cs
- SoapSchemaImporter.cs
- ComplexTypeEmitter.cs