Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- DeviceSpecific.cs
- ListBoxDesigner.cs
- Subset.cs
- MSAANativeProvider.cs
- MetadataItemEmitter.cs
- Wizard.cs
- DependentTransaction.cs
- GenericQueueSurrogate.cs
- PrintPreviewControl.cs
- GenericRootAutomationPeer.cs
- Form.cs
- FixedTextBuilder.cs
- UidManager.cs
- SystemInfo.cs
- NonNullItemCollection.cs
- TraceSource.cs
- RadioButtonStandardAdapter.cs
- DefaultTextStore.cs
- TemplateContentLoader.cs
- PrincipalPermission.cs
- DataGridCellsPresenter.cs
- ContextConfiguration.cs
- BlobPersonalizationState.cs
- DeclaredTypeValidatorAttribute.cs
- mediapermission.cs
- EntityDesignPluralizationHandler.cs
- BindingOperations.cs
- NotFiniteNumberException.cs
- CodeLabeledStatement.cs
- RelatedCurrencyManager.cs
- MsmqChannelFactory.cs
- SecurityDescriptor.cs
- WorkflowRuntimeServicesBehavior.cs
- RoleService.cs
- DiscoveryServiceExtension.cs
- InvalidPrinterException.cs
- ExpressionVisitor.cs
- EntryWrittenEventArgs.cs
- BooleanAnimationUsingKeyFrames.cs
- _PooledStream.cs
- WebPartDescriptionCollection.cs
- CopyAction.cs
- OrderByLifter.cs
- SettingsAttributeDictionary.cs
- AppearanceEditorPart.cs
- __Filters.cs
- DropDownButton.cs
- TypographyProperties.cs
- SignatureResourcePool.cs
- SecureUICommand.cs
- EventLogPermissionEntry.cs
- RegisteredArrayDeclaration.cs
- CharStorage.cs
- StateBag.cs
- BaseCodePageEncoding.cs
- PictureBoxDesigner.cs
- NullableLongAverageAggregationOperator.cs
- StylusLogic.cs
- ValidationErrorInfo.cs
- DefaultClaimSet.cs
- controlskin.cs
- AnimatedTypeHelpers.cs
- WizardPanel.cs
- ReadWriteObjectLock.cs
- Token.cs
- SecurityElement.cs
- StylusLogic.cs
- DBConnectionString.cs
- ComponentGlyph.cs
- AssemblyResourceLoader.cs
- Emitter.cs
- PropertyCollection.cs
- EditorZoneBase.cs
- TiffBitmapDecoder.cs
- LogSwitch.cs
- DigestComparer.cs
- BitFlagsGenerator.cs
- InstanceKeyNotReadyException.cs
- WebServiceParameterData.cs
- SqlNotificationRequest.cs
- UserControlParser.cs
- MarkedHighlightComponent.cs
- RequestCachePolicyConverter.cs
- TextEndOfSegment.cs
- RtfControlWordInfo.cs
- ReturnEventArgs.cs
- SystemSounds.cs
- ActivitySurrogateSelector.cs
- AssociationProvider.cs
- SocketException.cs
- KeyValuePair.cs
- XmlCodeExporter.cs
- BoundingRectTracker.cs
- InputLanguageManager.cs
- SqlCommandSet.cs
- DeflateStream.cs
- PickBranchDesigner.xaml.cs
- DependencyProperty.cs
- PerspectiveCamera.cs
- FillErrorEventArgs.cs