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
- UnsafeMethods.cs
- DataTemplate.cs
- AnonymousIdentificationSection.cs
- Message.cs
- MenuCommand.cs
- TemplateModeChangedEventArgs.cs
- Matrix3DConverter.cs
- SystemIcons.cs
- OleDbMetaDataFactory.cs
- MatrixTransform.cs
- ColorAnimationUsingKeyFrames.cs
- XmlSchemaInferenceException.cs
- FileDialogCustomPlace.cs
- DataMisalignedException.cs
- RemotingConfigParser.cs
- CodeCommentStatementCollection.cs
- EncodingNLS.cs
- ProtectedUri.cs
- DesignerCalendarAdapter.cs
- ByteAnimationUsingKeyFrames.cs
- SimpleTypeResolver.cs
- StylusPointDescription.cs
- SimpleTextLine.cs
- ButtonPopupAdapter.cs
- PrinterSettings.cs
- DetailsViewPagerRow.cs
- UriScheme.cs
- Pkcs9Attribute.cs
- ToolStripSystemRenderer.cs
- DeploymentSection.cs
- WebCodeGenerator.cs
- ZipIOExtraFieldPaddingElement.cs
- CompilationUnit.cs
- NameValueConfigurationCollection.cs
- StringAnimationUsingKeyFrames.cs
- MemberProjectionIndex.cs
- StateMachineWorkflowDesigner.cs
- CodeMethodInvokeExpression.cs
- SafeRightsManagementPubHandle.cs
- ExtenderControl.cs
- Camera.cs
- StructuralObject.cs
- SafeViewOfFileHandle.cs
- FixedTextContainer.cs
- Native.cs
- InternalPermissions.cs
- GZipDecoder.cs
- PeerApplicationLaunchInfo.cs
- WindowsFormsLinkLabel.cs
- TimeEnumHelper.cs
- FontCacheUtil.cs
- TextServicesProperty.cs
- TitleStyle.cs
- NetworkAddressChange.cs
- OdbcEnvironmentHandle.cs
- TextRunTypographyProperties.cs
- PromptBuilder.cs
- ClaimTypeElementCollection.cs
- DecoderFallback.cs
- Crc32.cs
- ConfigXmlDocument.cs
- LiteralLink.cs
- SessionStateModule.cs
- SettingsContext.cs
- BinaryReader.cs
- XmlObjectSerializerWriteContextComplex.cs
- XmlSchemaFacet.cs
- FlowLayoutPanel.cs
- WindowsTokenRoleProvider.cs
- ListViewItemMouseHoverEvent.cs
- SiteOfOriginPart.cs
- InputReportEventArgs.cs
- ResourceDefaultValueAttribute.cs
- ObjectKeyFrameCollection.cs
- DoubleLinkListEnumerator.cs
- SpecialNameAttribute.cs
- ExpressionVisitorHelpers.cs
- _AutoWebProxyScriptWrapper.cs
- FSWPathEditor.cs
- oledbconnectionstring.cs
- LineProperties.cs
- HttpHandlerActionCollection.cs
- ModuleBuilderData.cs
- GroupByQueryOperator.cs
- MachineKeyValidationConverter.cs
- ObjectDataSourceDisposingEventArgs.cs
- ColumnWidthChangedEvent.cs
- CssClassPropertyAttribute.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- LineProperties.cs
- WizardSideBarListControlItemEventArgs.cs
- LoadWorkflowAsyncResult.cs
- GridViewCancelEditEventArgs.cs
- Point3D.cs
- ConstraintConverter.cs
- ExceptionValidationRule.cs
- IconConverter.cs
- WsatServiceCertificate.cs
- QilInvokeEarlyBound.cs
- BorderGapMaskConverter.cs