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
- CompositeControlDesigner.cs
- DateTimeConverter2.cs
- Point3DCollectionConverter.cs
- SystemFonts.cs
- QueryGenerator.cs
- EventHandlers.cs
- ApplicationFileParser.cs
- PieceDirectory.cs
- MetadataArtifactLoaderFile.cs
- LineBreak.cs
- WebBrowserUriTypeConverter.cs
- TextSpan.cs
- ResourceDisplayNameAttribute.cs
- NativeObjectSecurity.cs
- ShapingWorkspace.cs
- IdentityReference.cs
- MetadataUtilsSmi.cs
- ContextDataSourceContextData.cs
- XamlBuildTaskServices.cs
- MetadataSerializer.cs
- XPathMultyIterator.cs
- DesignTimeParseData.cs
- QilNode.cs
- MemberListBinding.cs
- DataColumnCollection.cs
- OleDbCommand.cs
- BypassElement.cs
- DrawTreeNodeEventArgs.cs
- CodeDOMProvider.cs
- FontClient.cs
- ContainerControl.cs
- TimeStampChecker.cs
- DbConnectionStringCommon.cs
- SqlDataSourceFilteringEventArgs.cs
- RecipientInfo.cs
- ItemsChangedEventArgs.cs
- NotifyCollectionChangedEventArgs.cs
- CollectionType.cs
- InputLanguageProfileNotifySink.cs
- WsdlInspector.cs
- ClipboardData.cs
- StretchValidation.cs
- DetailsViewDeleteEventArgs.cs
- ObjectToken.cs
- ControlCollection.cs
- QilLiteral.cs
- SystemIcons.cs
- TextRangeProviderWrapper.cs
- MarshalDirectiveException.cs
- MachineKeyConverter.cs
- Descriptor.cs
- PropertyIdentifier.cs
- BindableTemplateBuilder.cs
- ScriptIgnoreAttribute.cs
- DbUpdateCommandTree.cs
- LinkLabel.cs
- ContentHostHelper.cs
- CodeTypeOfExpression.cs
- BitmapEncoder.cs
- DecoderExceptionFallback.cs
- SignatureHelper.cs
- MonthCalendar.cs
- Graphics.cs
- RtfNavigator.cs
- CharKeyFrameCollection.cs
- BindingList.cs
- ReadOnlyMetadataCollection.cs
- FixedTextSelectionProcessor.cs
- SendMailErrorEventArgs.cs
- TabletCollection.cs
- DbParameterCollectionHelper.cs
- DynamicHyperLink.cs
- ImmutablePropertyDescriptorGridEntry.cs
- FontFaceLayoutInfo.cs
- ClientSession.cs
- ButtonFlatAdapter.cs
- SolidColorBrush.cs
- MobileControlDesigner.cs
- DiscoveryClientOutputChannel.cs
- UnsafeNativeMethodsPenimc.cs
- ViewStateModeByIdAttribute.cs
- DiscoveryOperationContext.cs
- PropertyGridEditorPart.cs
- XComponentModel.cs
- ControlBuilderAttribute.cs
- Decimal.cs
- DataListItem.cs
- RedirectionProxy.cs
- login.cs
- UpdateManifestForBrowserApplication.cs
- ViewCellRelation.cs
- PeerNameRegistration.cs
- unitconverter.cs
- PointCollectionValueSerializer.cs
- RegisteredArrayDeclaration.cs
- Serializer.cs
- RecordBuilder.cs
- QuaternionKeyFrameCollection.cs
- FormView.cs
- DependencyPropertyValueSerializer.cs