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
- PrePostDescendentsWalker.cs
- SamlSecurityToken.cs
- RangeBaseAutomationPeer.cs
- HiddenFieldPageStatePersister.cs
- WebServiceMethodData.cs
- ConfigurationLockCollection.cs
- nulltextcontainer.cs
- PrivateFontCollection.cs
- BindingCompleteEventArgs.cs
- AttributeAction.cs
- SizeLimitedCache.cs
- Size3D.cs
- DataServiceKeyAttribute.cs
- HttpRequestCacheValidator.cs
- ConfigurationManagerInternalFactory.cs
- DbProviderManifest.cs
- RegionInfo.cs
- CompiledQueryCacheKey.cs
- PointLightBase.cs
- QuotedPrintableStream.cs
- XPathNodeHelper.cs
- RequestBringIntoViewEventArgs.cs
- MobileTextWriter.cs
- Contracts.cs
- VisualBrush.cs
- KeySplineConverter.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- TypedTableHandler.cs
- RegexGroup.cs
- RSAPKCS1SignatureDeformatter.cs
- TaiwanCalendar.cs
- CacheAxisQuery.cs
- PagePropertiesChangingEventArgs.cs
- FileUtil.cs
- PKCS1MaskGenerationMethod.cs
- OfTypeExpression.cs
- FontDriver.cs
- Int32CollectionConverter.cs
- PropertyRef.cs
- VisualStateManager.cs
- HostingEnvironmentSection.cs
- TitleStyle.cs
- __Error.cs
- Hyperlink.cs
- SpeechEvent.cs
- HyperlinkAutomationPeer.cs
- Int16.cs
- PersonalizationAdministration.cs
- InlinedAggregationOperatorEnumerator.cs
- Win32Exception.cs
- Win32SafeHandles.cs
- ConnectionManagementElement.cs
- ListViewItemSelectionChangedEvent.cs
- GridViewAutomationPeer.cs
- Point3DKeyFrameCollection.cs
- TaskFileService.cs
- Environment.cs
- FixedTextContainer.cs
- SmiTypedGetterSetter.cs
- CustomErrorCollection.cs
- ProgressChangedEventArgs.cs
- DesignerActionList.cs
- CultureMapper.cs
- OperationInfoBase.cs
- FrugalMap.cs
- XamlFigureLengthSerializer.cs
- PriorityChain.cs
- DataServices.cs
- SecurityPolicyVersion.cs
- QuaternionAnimation.cs
- LoggedException.cs
- XPathNodeList.cs
- UrlParameterReader.cs
- Label.cs
- EntityCollection.cs
- NamespaceCollection.cs
- FontUnit.cs
- EnumUnknown.cs
- TemplateNameScope.cs
- EditingCoordinator.cs
- DataGridViewHeaderCell.cs
- XamlStream.cs
- ErrorFormatterPage.cs
- VectorConverter.cs
- ValidationRule.cs
- ConfigXmlSignificantWhitespace.cs
- EmptyElement.cs
- FileUtil.cs
- Solver.cs
- Label.cs
- StringWriter.cs
- ToolStripSettings.cs
- AuthorizationRule.cs
- DeferredElementTreeState.cs
- XmlILConstructAnalyzer.cs
- ViewBase.cs
- ItemCheckEvent.cs
- TypeExtensionConverter.cs
- CapabilitiesUse.cs
- ContextMenu.cs