Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- DBDataPermissionAttribute.cs
- _BaseOverlappedAsyncResult.cs
- WorkflowEnvironment.cs
- HttpRuntimeSection.cs
- QilPatternFactory.cs
- DataSourceCache.cs
- RoutedUICommand.cs
- BinHexEncoder.cs
- ScrollItemPatternIdentifiers.cs
- ValueConversionAttribute.cs
- DataListCommandEventArgs.cs
- PropertyFilterAttribute.cs
- BinaryKeyIdentifierClause.cs
- UserControlBuildProvider.cs
- ResizeGrip.cs
- SynchronizedDispatch.cs
- oledbmetadatacolumnnames.cs
- RadioButtonList.cs
- SortFieldComparer.cs
- DocumentPageHost.cs
- FixedPosition.cs
- TableProviderWrapper.cs
- JsonEncodingStreamWrapper.cs
- GacUtil.cs
- DataPagerFieldItem.cs
- PingOptions.cs
- DrawingAttributes.cs
- SqlDataSourceCommandEventArgs.cs
- RepeaterItemEventArgs.cs
- WsdlExporter.cs
- WebPartHeaderCloseVerb.cs
- ListDictionary.cs
- XamlPointCollectionSerializer.cs
- UTF8Encoding.cs
- HeaderElement.cs
- KeyNotFoundException.cs
- SafeEventLogWriteHandle.cs
- DataGridViewCellStyleChangedEventArgs.cs
- FontUnitConverter.cs
- GradientStop.cs
- ThreadStartException.cs
- FtpWebResponse.cs
- StructuralObject.cs
- StreamMarshaler.cs
- BasicViewGenerator.cs
- _AuthenticationState.cs
- SpeechUI.cs
- SecurityContextSecurityTokenAuthenticator.cs
- ValidatorAttribute.cs
- UserPersonalizationStateInfo.cs
- util.cs
- TagNameToTypeMapper.cs
- arc.cs
- SymLanguageVendor.cs
- ConsumerConnectionPoint.cs
- HttpPostedFile.cs
- SafeLibraryHandle.cs
- ProgressBar.cs
- ExpressionPrefixAttribute.cs
- WebBrowserHelper.cs
- HtmlElementEventArgs.cs
- ImageListImageEditor.cs
- XmlSerializationWriter.cs
- MILUtilities.cs
- MessageEnumerator.cs
- WaitingCursor.cs
- TransformerInfo.cs
- BoundPropertyEntry.cs
- HttpGetClientProtocol.cs
- TextHidden.cs
- RepeatBehavior.cs
- CompModSwitches.cs
- ManipulationStartedEventArgs.cs
- unsafeIndexingFilterStream.cs
- Span.cs
- StagingAreaInputItem.cs
- codemethodreferenceexpression.cs
- StyleSheetRefUrlEditor.cs
- ImageMapEventArgs.cs
- SafeNativeMethods.cs
- HostingEnvironmentWrapper.cs
- BehaviorEditorPart.cs
- CompositeScriptReference.cs
- DoubleAnimationClockResource.cs
- RowToFieldTransformer.cs
- CustomAssemblyResolver.cs
- DateTimeConverter2.cs
- DiscreteKeyFrames.cs
- FacetChecker.cs
- QueryCursorEventArgs.cs
- FixedSOMLineCollection.cs
- NameTable.cs
- TextMetrics.cs
- AllMembershipCondition.cs
- HtmlInputImage.cs
- WindowsTokenRoleProvider.cs
- SoapSchemaMember.cs
- ListViewGroup.cs
- WebPartHeaderCloseVerb.cs
- MultiPartWriter.cs