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
- SQLUtility.cs
- QueryCacheManager.cs
- AuthenticatedStream.cs
- UnsafeNativeMethods.cs
- OdbcCommand.cs
- ActivityExecutorOperation.cs
- PeerSecurityHelpers.cs
- QueryOutputWriter.cs
- SecurityContext.cs
- DataGridViewSelectedRowCollection.cs
- XmlDataSourceNodeDescriptor.cs
- DummyDataSource.cs
- DataGridViewMethods.cs
- DesignerSerializationManager.cs
- _DigestClient.cs
- AnnotationAuthorChangedEventArgs.cs
- Thumb.cs
- MarginCollapsingState.cs
- TreeNodeStyleCollection.cs
- SafeNativeMethods.cs
- HtmlWindowCollection.cs
- AssemblyName.cs
- SmiGettersStream.cs
- MobileContainerDesigner.cs
- DescriptionAttribute.cs
- CollectionViewProxy.cs
- ADMembershipUser.cs
- Sql8ExpressionRewriter.cs
- MemberInfoSerializationHolder.cs
- ColumnWidthChangingEvent.cs
- ToolTip.cs
- TransactionTable.cs
- DiscoveryClientBindingElement.cs
- ModuleConfigurationInfo.cs
- FusionWrap.cs
- VectorCollectionConverter.cs
- FacetEnabledSchemaElement.cs
- EllipseGeometry.cs
- BuilderPropertyEntry.cs
- HandleCollector.cs
- HttpsHostedTransportConfiguration.cs
- Model3D.cs
- RawStylusActions.cs
- ActiveXSite.cs
- UidManager.cs
- TextContainerChangeEventArgs.cs
- filewebrequest.cs
- DbConnectionClosed.cs
- NetworkStream.cs
- SelectorAutomationPeer.cs
- CustomPopupPlacement.cs
- WebPartTransformerAttribute.cs
- ButtonChrome.cs
- CorrelationService.cs
- StylusPlugin.cs
- XmlUtilWriter.cs
- XsltContext.cs
- UIInitializationException.cs
- XhtmlBasicValidationSummaryAdapter.cs
- OverlappedAsyncResult.cs
- GridItem.cs
- XmlDocumentFragment.cs
- TextElementEditingBehaviorAttribute.cs
- BypassElementCollection.cs
- IntSecurity.cs
- _IPv6Address.cs
- QueryHandler.cs
- TemplatedMailWebEventProvider.cs
- CryptoStream.cs
- Stackframe.cs
- TagMapCollection.cs
- RemoveStoryboard.cs
- MarkupWriter.cs
- SspiSecurityToken.cs
- NetworkInformationException.cs
- TextTreeText.cs
- LinqDataSourceValidationException.cs
- WmlTextViewAdapter.cs
- HostExecutionContextManager.cs
- MsmqPoisonMessageException.cs
- TextRange.cs
- TextServicesCompartment.cs
- GridSplitter.cs
- NamedPipeTransportElement.cs
- ZoneIdentityPermission.cs
- FormsAuthentication.cs
- XmlSchemaAny.cs
- BuildResult.cs
- FrameAutomationPeer.cs
- DocumentSchemaValidator.cs
- LocalIdKeyIdentifierClause.cs
- SrgsElementFactoryCompiler.cs
- Utils.cs
- TargetConverter.cs
- WmlLinkAdapter.cs
- ObjectMemberMapping.cs
- SqlFactory.cs
- LinkButton.cs
- ProfileService.cs
- XmlElement.cs