Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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 } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PolyLineSegment.cs
- ReferencedCollectionType.cs
- DBBindings.cs
- XmlSchemaValidator.cs
- WebBaseEventKeyComparer.cs
- Module.cs
- objectresult_tresulttype.cs
- PointCollection.cs
- MultiSelectRootGridEntry.cs
- PropertyFilterAttribute.cs
- OuterGlowBitmapEffect.cs
- DropSourceBehavior.cs
- InfocardClientCredentials.cs
- SchemaInfo.cs
- recordstatescratchpad.cs
- InternalCache.cs
- TableCell.cs
- QilReplaceVisitor.cs
- BamlResourceSerializer.cs
- Matrix3DConverter.cs
- SoapMessage.cs
- ListViewHitTestInfo.cs
- DataRowChangeEvent.cs
- DocumentPageViewAutomationPeer.cs
- SafeFileMappingHandle.cs
- DrawingDrawingContext.cs
- WindowInteractionStateTracker.cs
- StaticContext.cs
- SubqueryRules.cs
- BooleanSwitch.cs
- AuthorizationRule.cs
- AllowedAudienceUriElementCollection.cs
- MulticastIPAddressInformationCollection.cs
- ExceptionHandlers.cs
- TextTreeInsertUndoUnit.cs
- InstanceContext.cs
- SQLRoleProvider.cs
- WorkflowRuntimeServiceElementCollection.cs
- UnsafeNativeMethods.cs
- WbemException.cs
- FrameworkElement.cs
- Rethrow.cs
- EFTableProvider.cs
- XhtmlBasicPanelAdapter.cs
- ProcessMonitor.cs
- UserControlParser.cs
- Int32KeyFrameCollection.cs
- unitconverter.cs
- SingleAnimationUsingKeyFrames.cs
- BaseUriHelper.cs
- DataTableTypeConverter.cs
- HttpWebResponse.cs
- HtmlElement.cs
- ComponentCollection.cs
- WebContext.cs
- FontStretchConverter.cs
- WebBrowserBase.cs
- FixedPageStructure.cs
- HtmlElementCollection.cs
- ScrollProperties.cs
- RpcAsyncResult.cs
- MetadataArtifactLoaderComposite.cs
- ClientRolePrincipal.cs
- DPTypeDescriptorContext.cs
- PeerInvitationResponse.cs
- XNodeNavigator.cs
- Form.cs
- PropertyInfoSet.cs
- SystemPens.cs
- ApplicationDirectoryMembershipCondition.cs
- StructuredCompositeActivityDesigner.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- DbDataReader.cs
- MatrixKeyFrameCollection.cs
- WorkflowDebuggerSteppingAttribute.cs
- TransactionManager.cs
- IdentitySection.cs
- XmlSchema.cs
- Light.cs
- XXXInfos.cs
- EntityTypeEmitter.cs
- Stack.cs
- SubMenuStyleCollection.cs
- CookielessData.cs
- RelatedPropertyManager.cs
- HitTestParameters.cs
- WriteStateInfoBase.cs
- IsolationInterop.cs
- XmlAttributeCollection.cs
- NextPreviousPagerField.cs
- IOThreadTimer.cs
- SqlCommand.cs
- ObjectContext.cs
- WorkflowMessageEventArgs.cs
- InfoCardBaseException.cs
- ButtonPopupAdapter.cs
- StateMachine.cs
- ExtendedPropertyDescriptor.cs
- SocketException.cs
- DiscoveryReference.cs