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
- MonitoringDescriptionAttribute.cs
- InstanceNotReadyException.cs
- WebPart.cs
- TypeDependencyAttribute.cs
- UnmanagedHandle.cs
- SocketElement.cs
- SmiTypedGetterSetter.cs
- HtmlLink.cs
- FileAuthorizationModule.cs
- ExpressionBindings.cs
- Object.cs
- StyleHelper.cs
- CacheMemory.cs
- WebConfigurationHostFileChange.cs
- XmlIgnoreAttribute.cs
- QueryAccessibilityHelpEvent.cs
- WindowsFormsSynchronizationContext.cs
- SessionStateSection.cs
- StringUtil.cs
- SeekStoryboard.cs
- XmlSchemaAnnotated.cs
- Span.cs
- AnyReturnReader.cs
- SecurityDescriptor.cs
- Helpers.cs
- SQLDateTimeStorage.cs
- AddInToken.cs
- ThreadStaticAttribute.cs
- TreeNode.cs
- WebBrowserUriTypeConverter.cs
- ExpressionWriter.cs
- FileLogRecordHeader.cs
- ConnectionOrientedTransportBindingElement.cs
- UriTemplateTrieNode.cs
- HighContrastHelper.cs
- X509WindowsSecurityToken.cs
- ResourceProviderFactory.cs
- FontStyles.cs
- RNGCryptoServiceProvider.cs
- ChannelTokenTypeConverter.cs
- DataControlImageButton.cs
- FileLogRecordEnumerator.cs
- Base64WriteStateInfo.cs
- ObjectQueryState.cs
- WebPartConnectionsConfigureVerb.cs
- StagingAreaInputItem.cs
- UriTemplateDispatchFormatter.cs
- SingleObjectCollection.cs
- Frame.cs
- ArrayExtension.cs
- MostlySingletonList.cs
- GlyphsSerializer.cs
- MembershipSection.cs
- SendMailErrorEventArgs.cs
- ResizingMessageFilter.cs
- AddInDeploymentState.cs
- selecteditemcollection.cs
- TabPage.cs
- BindingSourceDesigner.cs
- UpdatePanelControlTrigger.cs
- TextBoxLine.cs
- HttpsHostedTransportConfiguration.cs
- ConstraintManager.cs
- log.cs
- CssClassPropertyAttribute.cs
- wgx_exports.cs
- LocalizationComments.cs
- SiblingIterators.cs
- QuaternionConverter.cs
- ErrorLog.cs
- _NtlmClient.cs
- CfgRule.cs
- EntityTypeEmitter.cs
- TextParaLineResult.cs
- DbCommandDefinition.cs
- DataGridViewUtilities.cs
- ExtensionQuery.cs
- DirectionalLight.cs
- XmlCharCheckingReader.cs
- WrapPanel.cs
- ValueUtilsSmi.cs
- HttpListenerContext.cs
- ParserOptions.cs
- NullReferenceException.cs
- EnumConverter.cs
- Win32.cs
- Matrix3D.cs
- TransportBindingElement.cs
- CommandID.cs
- BordersPage.cs
- PeerToPeerException.cs
- Paragraph.cs
- DriveNotFoundException.cs
- FormViewInsertedEventArgs.cs
- PathGeometry.cs
- XsltQilFactory.cs
- XmlValidatingReaderImpl.cs
- ParallelTimeline.cs
- Timer.cs
- ImageCodecInfo.cs