Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- GlobalizationSection.cs
- ArrayList.cs
- Expander.cs
- SoapInteropTypes.cs
- ReturnEventArgs.cs
- DesignerActionTextItem.cs
- ChtmlTextWriter.cs
- EventProxy.cs
- DataPagerCommandEventArgs.cs
- FtpWebResponse.cs
- CustomGrammar.cs
- MiniMapControl.xaml.cs
- LicenseException.cs
- DiagnosticsConfigurationHandler.cs
- ExceptionValidationRule.cs
- ICspAsymmetricAlgorithm.cs
- ComponentSerializationService.cs
- SocketPermission.cs
- WindowsTab.cs
- LinkUtilities.cs
- CodeChecksumPragma.cs
- _NativeSSPI.cs
- SafeRightsManagementSessionHandle.cs
- DirtyTextRange.cs
- AliasExpr.cs
- LZCodec.cs
- EntityException.cs
- BaseServiceProvider.cs
- FixedHyperLink.cs
- SqlNodeTypeOperators.cs
- Activity.cs
- CopyAttributesAction.cs
- ParseChildrenAsPropertiesAttribute.cs
- AssemblyInfo.cs
- HierarchicalDataSourceControl.cs
- HTMLTagNameToTypeMapper.cs
- SqlRetyper.cs
- TemplateBindingExtension.cs
- Message.cs
- QuaternionAnimationBase.cs
- ToolStripStatusLabel.cs
- EdmError.cs
- ProviderIncompatibleException.cs
- WebBrowserSiteBase.cs
- DataListCommandEventArgs.cs
- IISMapPath.cs
- QualifierSet.cs
- QilCloneVisitor.cs
- NotFiniteNumberException.cs
- BezierSegment.cs
- BamlLocalizableResource.cs
- MsmqTransportBindingElement.cs
- AutomationElementCollection.cs
- DoubleCollection.cs
- OneOfTypeConst.cs
- ScriptingSectionGroup.cs
- ResourcePool.cs
- Transform.cs
- PermissionAttributes.cs
- DataGridViewCellStyleConverter.cs
- BasicKeyConstraint.cs
- PageStatePersister.cs
- Panel.cs
- StringTraceRecord.cs
- ResourceReferenceKeyNotFoundException.cs
- ListViewInsertionMark.cs
- PropertyItem.cs
- SqlCacheDependencyDatabase.cs
- ToolStripSplitButton.cs
- HandleValueEditor.cs
- ToolStripItem.cs
- SHA384Managed.cs
- DynamicDiscoSearcher.cs
- EntityDescriptor.cs
- IMembershipProvider.cs
- _SecureChannel.cs
- PanelContainerDesigner.cs
- DateTimeUtil.cs
- ObjectItemCachedAssemblyLoader.cs
- IndexerNameAttribute.cs
- DiscoveryInnerClientAdhoc11.cs
- RowUpdatingEventArgs.cs
- WebPartTracker.cs
- SmiEventStream.cs
- CqlErrorHelper.cs
- TransactedReceiveScope.cs
- ITreeGenerator.cs
- UpDownBase.cs
- FormsAuthenticationModule.cs
- DrawingVisualDrawingContext.cs
- ObjectStateFormatter.cs
- CustomLineCap.cs
- TextServicesDisplayAttributePropertyRanges.cs
- Expr.cs
- SpecularMaterial.cs
- TemplatedControlDesigner.cs
- KeyedCollection.cs
- QuaternionAnimationUsingKeyFrames.cs
- MdImport.cs
- StringUtil.cs