Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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 } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PathSegment.cs
- XmlRawWriterWrapper.cs
- UICuesEvent.cs
- ExpandSegmentCollection.cs
- DataGridViewRow.cs
- OutputCache.cs
- DispatcherProcessingDisabled.cs
- EditorBrowsableAttribute.cs
- HttpConfigurationContext.cs
- X509CertificateEndpointIdentity.cs
- SafeFileMappingHandle.cs
- AnimationException.cs
- SuppressIldasmAttribute.cs
- Rfc2898DeriveBytes.cs
- PreparingEnlistment.cs
- TextProperties.cs
- StorageRoot.cs
- MenuCommand.cs
- TextEditorCopyPaste.cs
- ObjRef.cs
- SystemGatewayIPAddressInformation.cs
- TcpChannelFactory.cs
- OleDbConnection.cs
- Util.cs
- X509Certificate2.cs
- TdsParserSafeHandles.cs
- Matrix.cs
- TransactionFlowProperty.cs
- Fonts.cs
- _UriTypeConverter.cs
- MemberProjectionIndex.cs
- FacetEnabledSchemaElement.cs
- WSSecureConversation.cs
- SqlBulkCopyColumnMapping.cs
- ListViewTableCell.cs
- ContractComponent.cs
- SchemaImporterExtensionsSection.cs
- HorizontalAlignConverter.cs
- UniqueCodeIdentifierScope.cs
- Pts.cs
- ObjectConverter.cs
- UnsafeNativeMethods.cs
- DataSpaceManager.cs
- OrCondition.cs
- XmlKeywords.cs
- SqlExpressionNullability.cs
- IfJoinedCondition.cs
- IResourceProvider.cs
- FloaterBaseParagraph.cs
- QueryAccessibilityHelpEvent.cs
- XmlHierarchicalDataSourceView.cs
- RectAnimationBase.cs
- AmbientLight.cs
- PersonalizationProvider.cs
- Subtree.cs
- Errors.cs
- CodeSnippetTypeMember.cs
- URIFormatException.cs
- FixedSOMPageElement.cs
- RequestCacheManager.cs
- NameScope.cs
- AssociationSet.cs
- JsonFormatWriterGenerator.cs
- AnimatedTypeHelpers.cs
- ResourceManager.cs
- DataMisalignedException.cs
- SrgsElementFactoryCompiler.cs
- DynamicRenderer.cs
- RadioButtonStandardAdapter.cs
- AppDomainUnloadedException.cs
- WebReferencesBuildProvider.cs
- LinkUtilities.cs
- Style.cs
- MetadataArtifactLoaderComposite.cs
- ExpressionDumper.cs
- ScriptReference.cs
- PopupRootAutomationPeer.cs
- DocumentEventArgs.cs
- ProtocolImporter.cs
- SqlDataSourceCommandParser.cs
- SizeKeyFrameCollection.cs
- ScriptReferenceBase.cs
- StringAnimationBase.cs
- XsdDateTime.cs
- ProfileServiceManager.cs
- CalendarItem.cs
- FragmentQueryKB.cs
- CalendarItem.cs
- Lazy.cs
- XPathAncestorQuery.cs
- CommandValueSerializer.cs
- DataGridViewCellPaintingEventArgs.cs
- MatrixTransform3D.cs
- OSFeature.cs
- SafeNativeMethods.cs
- ScriptResourceAttribute.cs
- MenuEventArgs.cs
- StrokeSerializer.cs
- SafeRightsManagementSessionHandle.cs
- SimpleApplicationHost.cs