Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. //------------------------------------------------------------------------------ //// 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ExpressionPrefixAttribute.cs
- ContentDisposition.cs
- ToolboxComponentsCreatingEventArgs.cs
- ApplicationException.cs
- SafeNativeMethodsOther.cs
- SplitterEvent.cs
- WindowsClaimSet.cs
- CalendarDateRangeChangingEventArgs.cs
- BehaviorDragDropEventArgs.cs
- ExtenderProvidedPropertyAttribute.cs
- FormsAuthenticationEventArgs.cs
- Transactions.cs
- InstanceNormalEvent.cs
- BindingListCollectionView.cs
- DesignObjectWrapper.cs
- EntityViewGenerationConstants.cs
- Transactions.cs
- Debug.cs
- ProcessProtocolHandler.cs
- EventSetterHandlerConverter.cs
- ServiceModelConfigurationSectionGroup.cs
- XmlSchemaAny.cs
- DbMetaDataColumnNames.cs
- ACE.cs
- CodeGotoStatement.cs
- SamlNameIdentifierClaimResource.cs
- ExpandCollapsePattern.cs
- X509Chain.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- BufferedOutputAsyncStream.cs
- CodeAttributeArgument.cs
- EmptyReadOnlyDictionaryInternal.cs
- Int16AnimationBase.cs
- FamilyTypeface.cs
- SafeProcessHandle.cs
- oledbmetadatacolumnnames.cs
- ServiceInstanceProvider.cs
- MouseGestureConverter.cs
- CompressedStack.cs
- FileDialogCustomPlace.cs
- InteropExecutor.cs
- PointKeyFrameCollection.cs
- FormViewCommandEventArgs.cs
- Viewport3DVisual.cs
- DataExpression.cs
- InteropAutomationProvider.cs
- SmiEventSink_DeferedProcessing.cs
- LoadWorkflowCommand.cs
- TextCharacters.cs
- EventLogConfiguration.cs
- XmlWriterDelegator.cs
- InternalsVisibleToAttribute.cs
- DBSchemaTable.cs
- WebPartManagerInternals.cs
- BrowserInteropHelper.cs
- CodeIdentifier.cs
- GridViewRowEventArgs.cs
- Style.cs
- NativeRecognizer.cs
- SchemaInfo.cs
- mansign.cs
- uribuilder.cs
- Solver.cs
- SqlXmlStorage.cs
- EntityCollection.cs
- JulianCalendar.cs
- basevalidator.cs
- ServiceMemoryGates.cs
- TranslateTransform3D.cs
- BoundField.cs
- PersonalizableTypeEntry.cs
- HtmlInputPassword.cs
- InterleavedZipPartStream.cs
- ChannelPoolSettingsElement.cs
- ContextDataSourceView.cs
- XPathParser.cs
- ExpressionBindingCollection.cs
- ImplicitInputBrush.cs
- EndEvent.cs
- UrlEncodedParameterWriter.cs
- DbConnectionInternal.cs
- LineGeometry.cs
- ArrayConverter.cs
- ComMethodElement.cs
- DropSourceBehavior.cs
- DynamicExpression.cs
- DependencyPropertyChangedEventArgs.cs
- WsatConfiguration.cs
- GraphicsPath.cs
- Reference.cs
- BindingMemberInfo.cs
- LeafCellTreeNode.cs
- Evaluator.cs
- RegexMatchCollection.cs
- MarkupObject.cs
- SafeBitVector32.cs
- TakeOrSkipQueryOperator.cs
- ReadOnlyHierarchicalDataSourceView.cs
- ToolStripItemClickedEventArgs.cs
- MetadataExchangeClient.cs