Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- GridLength.cs
- ProfileSection.cs
- NetworkAddressChange.cs
- Transform3D.cs
- FormView.cs
- HttpSessionStateWrapper.cs
- XmlEnumAttribute.cs
- UpdatePanelControlTrigger.cs
- Calendar.cs
- AsymmetricSecurityProtocol.cs
- DataGridViewTextBoxColumn.cs
- CloseCollectionAsyncResult.cs
- OrthographicCamera.cs
- SafeFileHandle.cs
- TreeNodeEventArgs.cs
- InnerItemCollectionView.cs
- processwaithandle.cs
- InvokeBase.cs
- PreservationFileWriter.cs
- WebMessageEncoderFactory.cs
- SqlProcedureAttribute.cs
- HttpHostedTransportConfiguration.cs
- DBDataPermissionAttribute.cs
- XmlDownloadManager.cs
- NavigationWindowAutomationPeer.cs
- WebHttpSecurityModeHelper.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- SetStoryboardSpeedRatio.cs
- DataBindEngine.cs
- SmiXetterAccessMap.cs
- WaitHandleCannotBeOpenedException.cs
- CodeMemberProperty.cs
- StandardToolWindows.cs
- TiffBitmapEncoder.cs
- RowToFieldTransformer.cs
- ArgumentException.cs
- GraphicsContainer.cs
- OleDbDataReader.cs
- ItemType.cs
- MinimizableAttributeTypeConverter.cs
- GridViewRowEventArgs.cs
- DataControlButton.cs
- InternalMappingException.cs
- TextContainer.cs
- ReflectEventDescriptor.cs
- TreeNodeEventArgs.cs
- RightsManagementEncryptionTransform.cs
- MemberHolder.cs
- ConstraintEnumerator.cs
- TransformedBitmap.cs
- ReflectEventDescriptor.cs
- DictionarySectionHandler.cs
- RequestCachingSection.cs
- DataGridViewImageCell.cs
- WsatConfiguration.cs
- DefaultValueConverter.cs
- Token.cs
- FlowDocumentPage.cs
- DataListItemCollection.cs
- HtmlGenericControl.cs
- HostedTransportConfigurationManager.cs
- SoapRpcServiceAttribute.cs
- FormViewRow.cs
- StylusPointPropertyUnit.cs
- HttpHeaderCollection.cs
- GB18030Encoding.cs
- ToolStripDropDownItem.cs
- Vector3DConverter.cs
- BamlResourceContent.cs
- FixedTextView.cs
- Int64.cs
- WSHttpBindingBase.cs
- HScrollBar.cs
- TrackingServices.cs
- LocationReference.cs
- ListChangedEventArgs.cs
- Viewport3DAutomationPeer.cs
- LogLogRecord.cs
- KeyFrames.cs
- DispatchChannelSink.cs
- ExpandCollapsePattern.cs
- ObjectDataSourceEventArgs.cs
- ContentDefinition.cs
- NotifyParentPropertyAttribute.cs
- CapabilitiesSection.cs
- XmlUnspecifiedAttribute.cs
- XmlSchemaComplexContentExtension.cs
- SqlTriggerAttribute.cs
- AssemblyInfo.cs
- MimeXmlImporter.cs
- Point4D.cs
- mil_sdk_version.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- Msmq.cs
- ArrayWithOffset.cs
- SecurityDocument.cs
- ModelVisual3D.cs
- TraceHandler.cs
- HashStream.cs
- AppDomainManager.cs