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
- TextLineBreak.cs
- OutputScopeManager.cs
- Rect.cs
- InfoCardMasterKey.cs
- IntSecurity.cs
- BufferAllocator.cs
- VirtualPathExtension.cs
- FileDialogPermission.cs
- _CookieModule.cs
- HtmlTitle.cs
- DelegateArgument.cs
- CallTemplateAction.cs
- GeneratedCodeAttribute.cs
- DiffuseMaterial.cs
- Size.cs
- DrawTreeNodeEventArgs.cs
- FreeFormDragDropManager.cs
- EmissiveMaterial.cs
- InstalledFontCollection.cs
- MULTI_QI.cs
- DataServiceStreamResponse.cs
- TimeSpan.cs
- ScriptControlDescriptor.cs
- SerializationTrace.cs
- AnnotationObservableCollection.cs
- ExpressionQuoter.cs
- OdbcFactory.cs
- DNS.cs
- ObjectPropertyMapping.cs
- PersistNameAttribute.cs
- Label.cs
- CodeBinaryOperatorExpression.cs
- dataobject.cs
- OdbcStatementHandle.cs
- RangeBaseAutomationPeer.cs
- DataGridViewTopRowAccessibleObject.cs
- ZipIOExtraFieldPaddingElement.cs
- DataSourceXmlClassAttribute.cs
- HtmlAnchor.cs
- MessageQueueInstaller.cs
- UrlPropertyAttribute.cs
- XmlSchemaParticle.cs
- SHA256Managed.cs
- ClientRuntime.cs
- FileLoadException.cs
- IFlowDocumentViewer.cs
- CacheVirtualItemsEvent.cs
- WorkflowInstanceProvider.cs
- DataGridCommandEventArgs.cs
- XmlSchemas.cs
- CollectionChangeEventArgs.cs
- SessionParameter.cs
- TemplateControlCodeDomTreeGenerator.cs
- StringInfo.cs
- ViewBox.cs
- WindowsIPAddress.cs
- PlacementWorkspace.cs
- DetailsViewUpdatedEventArgs.cs
- Bezier.cs
- ClientScriptManager.cs
- WebHttpSecurityElement.cs
- DefaultProxySection.cs
- Nullable.cs
- XmlComplianceUtil.cs
- ParserExtension.cs
- XmlCDATASection.cs
- StoreItemCollection.cs
- IDReferencePropertyAttribute.cs
- ChannelManager.cs
- KerberosSecurityTokenProvider.cs
- CTreeGenerator.cs
- SqlParameter.cs
- SystemGatewayIPAddressInformation.cs
- BatchServiceHost.cs
- HttpHandlerActionCollection.cs
- ColumnClickEvent.cs
- WebPartRestoreVerb.cs
- NameValueFileSectionHandler.cs
- SiteOfOriginPart.cs
- AssemblyBuilder.cs
- GenerateTemporaryTargetAssembly.cs
- DurableOperationAttribute.cs
- SqlBulkCopy.cs
- RoleManagerSection.cs
- PeerInvitationResponse.cs
- IisTraceListener.cs
- LayoutEditorPart.cs
- ImageSourceConverter.cs
- XamlUtilities.cs
- DigitalSignatureProvider.cs
- StringKeyFrameCollection.cs
- PtsContext.cs
- XmlArrayItemAttribute.cs
- CfgRule.cs
- AnnotationHighlightLayer.cs
- CompositeActivityDesigner.cs
- TextBoxDesigner.cs
- UnsafeNativeMethods.cs
- OperandQuery.cs
- DataViewManager.cs