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
- SymLanguageType.cs
- FileLevelControlBuilderAttribute.cs
- DesignTimeParseData.cs
- TreeView.cs
- PkcsUtils.cs
- EntitySetBase.cs
- DataGridViewSelectedRowCollection.cs
- XmlQueryTypeFactory.cs
- AttributeTable.cs
- AssemblyBuilder.cs
- TrustLevel.cs
- ResourcePart.cs
- UserNameSecurityTokenParameters.cs
- AddressHeaderCollection.cs
- SrgsSubset.cs
- PageAsyncTask.cs
- ComboBox.cs
- XamlNamespaceHelper.cs
- WmlLiteralTextAdapter.cs
- _SslSessionsCache.cs
- TypeToken.cs
- DataGridCellItemAutomationPeer.cs
- TemporaryBitmapFile.cs
- OutputCacheProfile.cs
- DebugView.cs
- DataSvcMapFileSerializer.cs
- DesignerDataParameter.cs
- DesignerActionTextItem.cs
- SafeFileMappingHandle.cs
- XmlTextAttribute.cs
- DefaultMemberAttribute.cs
- UInt16.cs
- DataTrigger.cs
- LongMinMaxAggregationOperator.cs
- EdgeProfileValidation.cs
- ApplicationInfo.cs
- baseshape.cs
- XmlElementList.cs
- _ContextAwareResult.cs
- Nodes.cs
- UInt64Converter.cs
- HttpFileCollectionWrapper.cs
- DATA_BLOB.cs
- IConvertible.cs
- FrameworkElementAutomationPeer.cs
- XmlSchemaAnnotation.cs
- EntityContainer.cs
- glyphs.cs
- ProfileSettings.cs
- XmlValidatingReaderImpl.cs
- FilteredDataSetHelper.cs
- ClientApiGenerator.cs
- BitmapEffectState.cs
- WebBrowserSiteBase.cs
- GroupBoxRenderer.cs
- WindowsStatusBar.cs
- ProtocolsSection.cs
- StylusPointDescription.cs
- StylusCaptureWithinProperty.cs
- TextElementCollectionHelper.cs
- BindableTemplateBuilder.cs
- Size.cs
- SpellerError.cs
- EventData.cs
- Font.cs
- ModuleElement.cs
- Int32KeyFrameCollection.cs
- CodeCompiler.cs
- DataAdapter.cs
- Exception.cs
- SerializationHelper.cs
- XsdBuildProvider.cs
- FormsAuthenticationCredentials.cs
- ContractCodeDomInfo.cs
- StringFunctions.cs
- ADMembershipProvider.cs
- bindurihelper.cs
- TrackingProfile.cs
- TreeIterator.cs
- CryptoProvider.cs
- ComponentFactoryHelpers.cs
- TextBoxBase.cs
- SspiHelper.cs
- PersonalizationState.cs
- ResourceDescriptionAttribute.cs
- DrawingDrawingContext.cs
- LoggedException.cs
- SafeRegistryHandle.cs
- DataRow.cs
- SelectedGridItemChangedEvent.cs
- DbConnectionPoolOptions.cs
- HijriCalendar.cs
- HttpModuleCollection.cs
- ZoomingMessageFilter.cs
- WorkflowMarkupSerializationException.cs
- MatrixCamera.cs
- ProcessModuleCollection.cs
- Point3D.cs
- RenderTargetBitmap.cs
- FileUtil.cs