Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ContentType.cs
- GetPolicyDetailsRequest.cs
- BufferBuilder.cs
- ItemTypeToolStripMenuItem.cs
- FormViewPageEventArgs.cs
- PopOutPanel.cs
- UnsafeNativeMethods.cs
- TypeUtils.cs
- AnnotationHelper.cs
- RoleManagerModule.cs
- DashStyles.cs
- PointCollectionConverter.cs
- TableItemPatternIdentifiers.cs
- JsonGlobals.cs
- HwndTarget.cs
- ListViewItem.cs
- SchemaImporterExtensionElement.cs
- ReadWriteControlDesigner.cs
- BamlRecords.cs
- AttributeProviderAttribute.cs
- ZoneMembershipCondition.cs
- ApplicationException.cs
- URLMembershipCondition.cs
- DataGridParentRows.cs
- EastAsianLunisolarCalendar.cs
- CalendarAutoFormatDialog.cs
- _ConnectionGroup.cs
- DataGridColumn.cs
- ZipIOFileItemStream.cs
- RawAppCommandInputReport.cs
- SqlDataSourceSelectingEventArgs.cs
- DeferredElementTreeState.cs
- FamilyMap.cs
- SqlTypeSystemProvider.cs
- EndpointInfoCollection.cs
- SelectedDatesCollection.cs
- DataServiceEntityAttribute.cs
- TaskExtensions.cs
- CollectionBase.cs
- BufferedGraphicsManager.cs
- TextContainerChangedEventArgs.cs
- DataGridViewCellCollection.cs
- AlphabetConverter.cs
- Page.cs
- EventData.cs
- DataBindingHandlerAttribute.cs
- Rectangle.cs
- designeractionbehavior.cs
- DataServices.cs
- DataTableNewRowEvent.cs
- UniqueIdentifierService.cs
- ResourceReferenceExpressionConverter.cs
- BamlLocalizableResource.cs
- WebSysDescriptionAttribute.cs
- NativeMethods.cs
- SimpleHandlerBuildProvider.cs
- DetailsView.cs
- CapabilitiesUse.cs
- XmlAutoDetectWriter.cs
- DbConnectionOptions.cs
- ClusterSafeNativeMethods.cs
- ImageAnimator.cs
- FontStretch.cs
- Int64AnimationUsingKeyFrames.cs
- TextLineBreak.cs
- Size.cs
- DataGridViewAdvancedBorderStyle.cs
- SingleObjectCollection.cs
- ActionItem.cs
- ArcSegment.cs
- ExportOptions.cs
- StructuralCache.cs
- GAC.cs
- Models.cs
- CommonObjectSecurity.cs
- StorageEndPropertyMapping.cs
- Comparer.cs
- CodeCompiler.cs
- HttpProtocolImporter.cs
- ViewEvent.cs
- PackageRelationshipCollection.cs
- PixelFormatConverter.cs
- WebBrowserNavigatedEventHandler.cs
- EdmItemError.cs
- TypedReference.cs
- CharacterMetrics.cs
- ColumnMapTranslator.cs
- Fonts.cs
- StyleSheetComponentEditor.cs
- FunctionUpdateCommand.cs
- XmlSiteMapProvider.cs
- EntityKey.cs
- SQLUtility.cs
- QilDataSource.cs
- WorkflowElementDialogWindow.xaml.cs
- ContentPresenter.cs
- MDIClient.cs
- ObjectItemNoOpAssemblyLoader.cs
- LabelEditEvent.cs
- DBCommand.cs