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
- SafeCloseHandleCritical.cs
- Rect.cs
- CounterCreationDataConverter.cs
- BaseParser.cs
- ClientConfigurationHost.cs
- PermissionListSet.cs
- Tokenizer.cs
- ToolStripContentPanelDesigner.cs
- MaterialGroup.cs
- RecordConverter.cs
- X509Certificate2.cs
- SingleConverter.cs
- RectKeyFrameCollection.cs
- DataServicePagingProviderWrapper.cs
- DataBindingList.cs
- ComponentEditorForm.cs
- AlignmentYValidation.cs
- DataBinder.cs
- Matrix.cs
- AdvancedBindingEditor.cs
- NameTable.cs
- LinqDataSource.cs
- NonBatchDirectoryCompiler.cs
- _AutoWebProxyScriptWrapper.cs
- DeclarativeCatalogPartDesigner.cs
- EntityDataReader.cs
- IDataContractSurrogate.cs
- EntityDataSourceWrapper.cs
- NegotiateStream.cs
- ViewCellSlot.cs
- XmlSchemaSimpleType.cs
- KeyMatchBuilder.cs
- Int32CAMarshaler.cs
- SQLInt32Storage.cs
- SerialPinChanges.cs
- SemanticAnalyzer.cs
- StylusPoint.cs
- BindableAttribute.cs
- MetadataCache.cs
- formatstringdialog.cs
- StateDesignerConnector.cs
- DesignerDataRelationship.cs
- BitmapCodecInfo.cs
- DataContractSerializerOperationBehavior.cs
- XPathNodeInfoAtom.cs
- CategoryAttribute.cs
- RoutingUtilities.cs
- ModifiableIteratorCollection.cs
- LambdaExpression.cs
- Polygon.cs
- TemplateInstanceAttribute.cs
- FormCollection.cs
- SqlTypesSchemaImporter.cs
- RenderOptions.cs
- ProfileSection.cs
- DbDataSourceEnumerator.cs
- XmlDataFileEditor.cs
- PackagePartCollection.cs
- ProcessModelInfo.cs
- Permission.cs
- WindowsNonControl.cs
- DeviceContext2.cs
- Registry.cs
- BlobPersonalizationState.cs
- BinaryNode.cs
- StyleReferenceConverter.cs
- DoubleAnimationBase.cs
- _LocalDataStore.cs
- DataGridViewToolTip.cs
- Utils.cs
- Cursors.cs
- HierarchicalDataBoundControlAdapter.cs
- SafeRightsManagementQueryHandle.cs
- Stylesheet.cs
- RealizedColumnsBlock.cs
- TransportSecurityProtocol.cs
- IfAction.cs
- MulticastOption.cs
- WebPartsPersonalizationAuthorization.cs
- RegistryKey.cs
- FactoryGenerator.cs
- EntityConnectionStringBuilder.cs
- MsmqIntegrationBindingElement.cs
- TextEndOfParagraph.cs
- IsolatedStorage.cs
- XmlSchemaSet.cs
- parserscommon.cs
- NamedPermissionSet.cs
- ExpanderAutomationPeer.cs
- FlowchartDesigner.Helpers.cs
- TextLineResult.cs
- TransformFinalBlockRequest.cs
- DBDataPermission.cs
- WeakEventTable.cs
- SerializationSectionGroup.cs
- OleDbCommandBuilder.cs
- TrackingProfileManager.cs
- ConstructorExpr.cs
- BaseCodePageEncoding.cs
- FlagsAttribute.cs