Code:
/ DotNET / DotNET / 8.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
- PointLight.cs
- XmlAttributeOverrides.cs
- UnsafeNativeMethods.cs
- FrameworkElement.cs
- FrameworkTemplate.cs
- SqlConnectionFactory.cs
- XmlDictionaryReaderQuotas.cs
- StyleXamlParser.cs
- FloaterBaseParagraph.cs
- WindowsRichEditRange.cs
- InplaceBitmapMetadataWriter.cs
- OperationAbortedException.cs
- StorageEntityContainerMapping.cs
- ObjectStorage.cs
- EventLogPermissionEntryCollection.cs
- FieldInfo.cs
- LinearGradientBrush.cs
- AuthenticationSection.cs
- BitmapDecoder.cs
- ThreadInterruptedException.cs
- ManagedCodeMarkers.cs
- MetadataItemEmitter.cs
- XmlRawWriterWrapper.cs
- FixedFindEngine.cs
- DashStyle.cs
- METAHEADER.cs
- DbBuffer.cs
- ByteStreamMessageUtility.cs
- SiteMapSection.cs
- FormViewUpdatedEventArgs.cs
- DefaultAsyncDataDispatcher.cs
- SecurityDescriptor.cs
- XmlSchemaSimpleContentRestriction.cs
- httpserverutility.cs
- ColumnMapCopier.cs
- X509CertificateCollection.cs
- SoapIncludeAttribute.cs
- UnsafeNativeMethods.cs
- FontSizeConverter.cs
- FeatureSupport.cs
- CatalogZone.cs
- XmlAnyElementAttribute.cs
- BezierSegment.cs
- C14NUtil.cs
- DesignerSerializerAttribute.cs
- ArcSegment.cs
- Suspend.cs
- CodeDirectoryCompiler.cs
- MultiPropertyDescriptorGridEntry.cs
- UnauthorizedWebPart.cs
- JsonCollectionDataContract.cs
- ThrowOnMultipleAssignment.cs
- ConnectionPoolManager.cs
- AssemblyNameProxy.cs
- DrawTreeNodeEventArgs.cs
- Binding.cs
- BitConverter.cs
- XslTransformFileEditor.cs
- BulletedList.cs
- SettingsBase.cs
- MarkedHighlightComponent.cs
- RoleManagerEventArgs.cs
- InertiaTranslationBehavior.cs
- RemotingException.cs
- BindingContext.cs
- FixedTextSelectionProcessor.cs
- IRCollection.cs
- PathGradientBrush.cs
- ArgumentOutOfRangeException.cs
- UriTemplateTable.cs
- Keywords.cs
- CustomSignedXml.cs
- InternalTypeHelper.cs
- XMLDiffLoader.cs
- SecurityDocument.cs
- CompositeDuplexElement.cs
- BooleanAnimationBase.cs
- RtfToken.cs
- UnsafeNativeMethods.cs
- AllMembershipCondition.cs
- BaseAddressPrefixFilterElement.cs
- EventLog.cs
- SqlRowUpdatingEvent.cs
- Slider.cs
- SqlEnums.cs
- SimpleTypeResolver.cs
- DataBoundControl.cs
- Stroke2.cs
- GetPageNumberCompletedEventArgs.cs
- BaseParagraph.cs
- TypeListConverter.cs
- CommandBindingCollection.cs
- ExtensibleClassFactory.cs
- InstalledFontCollection.cs
- Mutex.cs
- ConnectionProviderAttribute.cs
- SemanticResolver.cs
- Simplifier.cs
- ChannelSinkStacks.cs
- ExpressionNode.cs