Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- DateTimeFormatInfoScanner.cs
- InheritanceContextHelper.cs
- TextSpanModifier.cs
- RowUpdatingEventArgs.cs
- BaseResourcesBuildProvider.cs
- WebPartVerbCollection.cs
- ViewManager.cs
- XMLSchema.cs
- QueryOutputWriterV1.cs
- EventEntry.cs
- ControlCommandSet.cs
- DrawingAttributeSerializer.cs
- _WebProxyDataBuilder.cs
- HtmlFormWrapper.cs
- RootBrowserWindowProxy.cs
- SharedPerformanceCounter.cs
- FormViewActionList.cs
- METAHEADER.cs
- EdmTypeAttribute.cs
- PolicyLevel.cs
- WindowsBrush.cs
- listviewsubitemcollectioneditor.cs
- TraceUtility.cs
- ExtenderControl.cs
- BoundsDrawingContextWalker.cs
- IssuedTokenServiceElement.cs
- FixedSchema.cs
- BatchWriter.cs
- TypeFieldSchema.cs
- XmlSchemaObject.cs
- GACMembershipCondition.cs
- MutexSecurity.cs
- SamlConditions.cs
- TextElementAutomationPeer.cs
- CookielessHelper.cs
- ApplicationActivator.cs
- SiteOfOriginPart.cs
- MailWebEventProvider.cs
- DataDocumentXPathNavigator.cs
- State.cs
- TraceHandler.cs
- ResourceAssociationTypeEnd.cs
- HttpModulesSection.cs
- ExpressionBindingCollection.cs
- GacUtil.cs
- GridViewPageEventArgs.cs
- LightweightEntityWrapper.cs
- MatrixAnimationUsingPath.cs
- ResumeStoryboard.cs
- InvokeMethodActivity.cs
- __FastResourceComparer.cs
- WorkflowServiceAttributes.cs
- WebScriptServiceHost.cs
- CancelEventArgs.cs
- Regex.cs
- HandlerMappingMemo.cs
- SignedXml.cs
- MetricEntry.cs
- TypedDataSetSchemaImporterExtension.cs
- CryptoApi.cs
- ConfigurationElementProperty.cs
- StylusPointDescription.cs
- TextBox.cs
- SessionStateModule.cs
- SQLGuid.cs
- ScrollableControl.cs
- HtmlWindowCollection.cs
- Button.cs
- DateTimeOffsetStorage.cs
- DynamicResourceExtension.cs
- DataObjectAttribute.cs
- InputMethodStateChangeEventArgs.cs
- ConnectionsZone.cs
- SplitterEvent.cs
- GatewayDefinition.cs
- SourceFileBuildProvider.cs
- NativeMethods.cs
- BitmapScalingModeValidation.cs
- OneOfTypeConst.cs
- IssuedTokenClientBehaviorsElement.cs
- WebConfigurationHost.cs
- PositiveTimeSpanValidator.cs
- WebReferencesBuildProvider.cs
- NavigatorInput.cs
- TypeConverter.cs
- IdentityModelDictionary.cs
- ClonableStack.cs
- CompilerLocalReference.cs
- TypefaceMetricsCache.cs
- InputProviderSite.cs
- DispatcherObject.cs
- WebPartPersonalization.cs
- HtmlInputFile.cs
- PageThemeParser.cs
- CommandConverter.cs
- TableItemStyle.cs
- DynamicDiscoSearcher.cs
- StylusPlugInCollection.cs
- StylusPointDescription.cs
- RegexGroup.cs