Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Util / DoubleLink.cs / 1305376 / 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;}} 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
- CachedBitmap.cs
- SafeFindHandle.cs
- CatalogPartDesigner.cs
- HMACRIPEMD160.cs
- XmlExpressionDumper.cs
- SinglePageViewer.cs
- CodeArgumentReferenceExpression.cs
- TreeViewImageGenerator.cs
- StrokeFIndices.cs
- MSHTMLHost.cs
- RtfToXamlLexer.cs
- SecurityKeyIdentifierClause.cs
- SqlGenericUtil.cs
- AssemblyNameProxy.cs
- DataObjectAttribute.cs
- GraphicsContext.cs
- LineVisual.cs
- HttpCookiesSection.cs
- parserscommon.cs
- AssemblyResourceLoader.cs
- UdpAnnouncementEndpoint.cs
- Rectangle.cs
- CompletionProxy.cs
- StateItem.cs
- BindingObserver.cs
- ViewManager.cs
- MonitorWrapper.cs
- FormatException.cs
- ReturnType.cs
- BamlRecordWriter.cs
- ColorTransform.cs
- BufferModeSettings.cs
- SQLBinary.cs
- AccessedThroughPropertyAttribute.cs
- HTTPNotFoundHandler.cs
- EnvelopedSignatureTransform.cs
- IUnknownConstantAttribute.cs
- X509ChainElement.cs
- DBParameter.cs
- MissingMethodException.cs
- DataSysAttribute.cs
- SqlHelper.cs
- safex509handles.cs
- ResourceBinder.cs
- InlineCollection.cs
- CancellationState.cs
- AnnotationStore.cs
- TextBox.cs
- InputScope.cs
- ResourceContainer.cs
- Point3DConverter.cs
- FilteredAttributeCollection.cs
- AttachedPropertiesService.cs
- SortedSetDebugView.cs
- SortQuery.cs
- SqlDataSourceEnumerator.cs
- XmlReflectionImporter.cs
- ListBoxItem.cs
- BitmapEffectState.cs
- WebPartDisplayModeCancelEventArgs.cs
- RightsManagementEncryptedStream.cs
- ShaderRenderModeValidation.cs
- ComponentGlyph.cs
- ListenerAdaptersInstallComponent.cs
- InputScope.cs
- MembershipUser.cs
- Documentation.cs
- SqlNotificationRequest.cs
- PolyQuadraticBezierSegment.cs
- StreamGeometryContext.cs
- X509SecurityToken.cs
- DataStorage.cs
- ColorTransformHelper.cs
- StatusBarDrawItemEvent.cs
- BookmarkInfo.cs
- DependencyPropertyKind.cs
- ContextMenuAutomationPeer.cs
- SymbolEqualComparer.cs
- Icon.cs
- wpf-etw.cs
- ComponentResourceKey.cs
- InvalidPropValue.cs
- SqlTypesSchemaImporter.cs
- OleDbRowUpdatingEvent.cs
- validationstate.cs
- HttpListenerRequestTraceRecord.cs
- WebPartConnectionsDisconnectVerb.cs
- TemplateColumn.cs
- OledbConnectionStringbuilder.cs
- CornerRadiusConverter.cs
- ValidationVisibilityAttribute.cs
- DropShadowBitmapEffect.cs
- Queue.cs
- TemplateInstanceAttribute.cs
- SimpleParser.cs
- MessagePartSpecification.cs
- GlyphCache.cs
- IndexedString.cs
- TextBoxAutomationPeer.cs
- TemplateControlCodeDomTreeGenerator.cs