Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- ResourcesGenerator.cs
- HostExecutionContextManager.cs
- XmlDictionary.cs
- MultipleViewPattern.cs
- TableSectionStyle.cs
- TypeName.cs
- ParagraphResult.cs
- BitmapEffectInput.cs
- PasswordBoxAutomationPeer.cs
- WindowsHyperlink.cs
- NavigationFailedEventArgs.cs
- EntityDataSourceReferenceGroup.cs
- GeneralTransformGroup.cs
- SendMailErrorEventArgs.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- ObjectDataSourceMethodEditor.cs
- ZipFileInfoCollection.cs
- SqlInfoMessageEvent.cs
- SmtpNegotiateAuthenticationModule.cs
- ControlLocalizer.cs
- ProfilePropertySettings.cs
- XhtmlTextWriter.cs
- HtmlFormAdapter.cs
- StrokeNode.cs
- SafeSecurityHelper.cs
- ExpressionParser.cs
- EventSetter.cs
- ZoneButton.cs
- LocalValueEnumerator.cs
- ItemsControlAutomationPeer.cs
- HwndAppCommandInputProvider.cs
- SqlEnums.cs
- FormViewAutoFormat.cs
- AddInServer.cs
- MetadataArtifactLoaderComposite.cs
- SqlColumnizer.cs
- cookiecollection.cs
- ContextStack.cs
- RegistryPermission.cs
- XamlReader.cs
- SystemException.cs
- ManagementObject.cs
- DLinqAssociationProvider.cs
- EmptyStringExpandableObjectConverter.cs
- _ChunkParse.cs
- SRGSCompiler.cs
- GlyphRunDrawing.cs
- ColumnWidthChangedEvent.cs
- HtmlEmptyTagControlBuilder.cs
- StylusPointPropertyInfoDefaults.cs
- ServiceDurableInstanceContextProvider.cs
- PathFigureCollection.cs
- ValidationSummary.cs
- CodeSnippetCompileUnit.cs
- PropertyDescriptorComparer.cs
- FontCacheUtil.cs
- DataList.cs
- PtsCache.cs
- CodeObjectCreateExpression.cs
- PenLineCapValidation.cs
- validation.cs
- KnownBoxes.cs
- RegistryPermission.cs
- Translator.cs
- ColorAnimation.cs
- ObjectListSelectEventArgs.cs
- OrderingInfo.cs
- XAMLParseException.cs
- MessageQueueException.cs
- XmlValidatingReader.cs
- DataControlFieldCollection.cs
- NoClickablePointException.cs
- WebResourceUtil.cs
- initElementDictionary.cs
- ColorAnimationBase.cs
- SoapAttributeAttribute.cs
- UserControlBuildProvider.cs
- SqlTypesSchemaImporter.cs
- SemanticResolver.cs
- DebuggerAttributes.cs
- TextAnchor.cs
- RetrieveVirtualItemEventArgs.cs
- UIAgentAsyncEndRequest.cs
- CompilerGeneratedAttribute.cs
- ObjectSet.cs
- FloaterParagraph.cs
- InvalidPipelineStoreException.cs
- ExtensionMethods.cs
- TdsParser.cs
- ViewRendering.cs
- ApplicationServiceManager.cs
- ViewKeyConstraint.cs
- UriTemplateMatch.cs
- SystemIcons.cs
- WebPart.cs
- updatecommandorderer.cs
- CalculatedColumn.cs
- ReachNamespaceInfo.cs
- Geometry3D.cs
- ClientSettingsStore.cs