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
- PropertyRecord.cs
- BindingSource.cs
- DependentList.cs
- BitmapCacheBrush.cs
- ReflectTypeDescriptionProvider.cs
- SecureStringHasher.cs
- DynamicDataManager.cs
- ClientCultureInfo.cs
- ColorAnimationBase.cs
- ManagedWndProcTracker.cs
- QualifiedCellIdBoolean.cs
- PartialList.cs
- AlgoModule.cs
- Translator.cs
- HttpCachePolicyBase.cs
- AnnotationAuthorChangedEventArgs.cs
- TemplatePropertyEntry.cs
- RegexCode.cs
- StorageInfo.cs
- PngBitmapDecoder.cs
- OperandQuery.cs
- DesignerActionPropertyItem.cs
- Hash.cs
- IssuanceTokenProviderBase.cs
- _SSPIWrapper.cs
- FontEmbeddingManager.cs
- Transform3D.cs
- ScrollItemProviderWrapper.cs
- InputBinder.cs
- HtmlShimManager.cs
- HitTestDrawingContextWalker.cs
- UserNamePasswordValidationMode.cs
- JsonXmlDataContract.cs
- DataObjectPastingEventArgs.cs
- UnknownExceptionActionHelper.cs
- Region.cs
- MethodRental.cs
- ModulesEntry.cs
- NamespaceTable.cs
- VirtualPathProvider.cs
- AssemblyName.cs
- COM2ExtendedBrowsingHandler.cs
- WeakEventTable.cs
- LocalizationParserHooks.cs
- BrushConverter.cs
- Debug.cs
- COAUTHIDENTITY.cs
- XmlSchemaNotation.cs
- SqlWebEventProvider.cs
- DataGridViewCellParsingEventArgs.cs
- ColorAnimation.cs
- ElapsedEventArgs.cs
- GlyphManager.cs
- DllHostInitializer.cs
- DBPropSet.cs
- SqlStatistics.cs
- HttpFileCollection.cs
- QilXmlWriter.cs
- TextRange.cs
- DataGridToolTip.cs
- OperationAbortedException.cs
- StreamingContext.cs
- XsdSchemaFileEditor.cs
- ReadOnlyDictionary.cs
- ServiceContractViewControl.cs
- CompiledIdentityConstraint.cs
- GeometryCombineModeValidation.cs
- GPStream.cs
- XmlUtf8RawTextWriter.cs
- AspCompat.cs
- FormatSettings.cs
- TimeSpanSecondsConverter.cs
- AmbientValueAttribute.cs
- BlurBitmapEffect.cs
- TableLayoutPanelBehavior.cs
- CopyCodeAction.cs
- ToolStripProgressBar.cs
- AssociatedControlConverter.cs
- ExpanderAutomationPeer.cs
- OperationDescription.cs
- EventLogTraceListener.cs
- NavigationExpr.cs
- DataServiceRequest.cs
- AlphabeticalEnumConverter.cs
- FileDialogCustomPlace.cs
- SecurityHelper.cs
- BaseCAMarshaler.cs
- Keywords.cs
- ArraySet.cs
- TextSchema.cs
- SiteMap.cs
- ActiveDocumentEvent.cs
- ProfileBuildProvider.cs
- PrtCap_Builder.cs
- DupHandleConnectionReader.cs
- MyContact.cs
- TraceUtils.cs
- CultureInfo.cs
- RemotingConfigParser.cs
- ObjectToken.cs