Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- XmlSchemaSet.cs
- SqlClientWrapperSmiStream.cs
- Cell.cs
- VarRefManager.cs
- EventHandlerList.cs
- _SSPIWrapper.cs
- ImageAttributes.cs
- DataGridViewCellLinkedList.cs
- ItemAutomationPeer.cs
- ExtendedProtectionPolicy.cs
- GradientBrush.cs
- StoreItemCollection.Loader.cs
- PngBitmapEncoder.cs
- SystemResourceHost.cs
- SchemaElementLookUpTable.cs
- EditorPartCollection.cs
- Dynamic.cs
- CompilationPass2TaskInternal.cs
- SrgsOneOf.cs
- TextServicesDisplayAttribute.cs
- Rect3DValueSerializer.cs
- CompoundFileIOPermission.cs
- UnsignedPublishLicense.cs
- ImageListUtils.cs
- XmlSchemaSimpleTypeRestriction.cs
- DeploymentSection.cs
- SqlFunctionAttribute.cs
- RectAnimationClockResource.cs
- SplayTreeNode.cs
- SafeNativeMethods.cs
- InvalidOperationException.cs
- WrapPanel.cs
- MethodCallConverter.cs
- MyContact.cs
- RowUpdatedEventArgs.cs
- VerificationException.cs
- LayeredChannelFactory.cs
- StateRuntime.cs
- SqlBulkCopyColumnMapping.cs
- ControlBuilderAttribute.cs
- SecurityManager.cs
- RotationValidation.cs
- SubpageParagraph.cs
- MultiTrigger.cs
- DictionaryBase.cs
- ProviderConnectionPointCollection.cs
- Delay.cs
- NamespaceCollection.cs
- MimePart.cs
- GradientBrush.cs
- WbemProvider.cs
- WebPartChrome.cs
- Debug.cs
- Marshal.cs
- MsmqBindingFilter.cs
- SqlBulkCopyColumnMappingCollection.cs
- HeaderedItemsControl.cs
- CompilerLocalReference.cs
- BitmapEffectGeneralTransform.cs
- SQLChars.cs
- CollectionViewGroupRoot.cs
- InfoCardKeyedHashAlgorithm.cs
- SemanticResultValue.cs
- CDSCollectionETWBCLProvider.cs
- HashCodeCombiner.cs
- JsonDeserializer.cs
- HtmlImage.cs
- activationcontext.cs
- XmlSchemaValidator.cs
- AppSettingsReader.cs
- BaseCodeDomTreeGenerator.cs
- DigitShape.cs
- FunctionParameter.cs
- DescendentsWalker.cs
- ListViewItem.cs
- SerializerProvider.cs
- PackWebResponse.cs
- ComponentManagerBroker.cs
- AuthorizationSection.cs
- ObjectComplexPropertyMapping.cs
- SimpleType.cs
- _HeaderInfo.cs
- PageBuildProvider.cs
- srgsitem.cs
- TimeZone.cs
- Pair.cs
- FileVersionInfo.cs
- TextOptionsInternal.cs
- DbModificationClause.cs
- SiteMembershipCondition.cs
- RewritingValidator.cs
- __TransparentProxy.cs
- SqlFacetAttribute.cs
- SpeechAudioFormatInfo.cs
- SelectionItemProviderWrapper.cs
- InputLanguageProfileNotifySink.cs
- MainMenu.cs
- XmlCDATASection.cs
- ResourceReferenceExpression.cs
- EntityDataSourceValidationException.cs