Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- GatewayDefinition.cs
- OracleEncoding.cs
- LogLogRecord.cs
- VisualBasicImportReference.cs
- EllipseGeometry.cs
- GenericUriParser.cs
- DataViewListener.cs
- IDataContractSurrogate.cs
- AppSecurityManager.cs
- Rectangle.cs
- ProjectedSlot.cs
- WsdlInspector.cs
- MailWebEventProvider.cs
- OdbcEnvironment.cs
- QuaternionAnimation.cs
- ResourceAssociationSet.cs
- ProcessInfo.cs
- OperatorExpressions.cs
- QuaternionKeyFrameCollection.cs
- BitmapEffect.cs
- Axis.cs
- UITypeEditors.cs
- ExtensionQuery.cs
- LocalizabilityAttribute.cs
- SynchronizationContext.cs
- ListView.cs
- ContravarianceAdapter.cs
- SystemWebSectionGroup.cs
- ApplicationBuildProvider.cs
- LoginView.cs
- ResizingMessageFilter.cs
- DefinitionUpdate.cs
- EdmProviderManifest.cs
- EvidenceBase.cs
- ActivityDesignerResources.cs
- ProviderException.cs
- NullableConverter.cs
- RadioButton.cs
- storepermission.cs
- AssemblyCollection.cs
- CallbackHandler.cs
- TimeStampChecker.cs
- CodeThrowExceptionStatement.cs
- ViewValidator.cs
- MetadataImporter.cs
- ForEachAction.cs
- ClientUrlResolverWrapper.cs
- processwaithandle.cs
- HttpContextServiceHost.cs
- ToolStripDropDownButton.cs
- Queue.cs
- FocusTracker.cs
- ModelPropertyDescriptor.cs
- SqlBinder.cs
- FilterFactory.cs
- AsymmetricAlgorithm.cs
- WebResourceAttribute.cs
- EFColumnProvider.cs
- NameTable.cs
- Converter.cs
- Attributes.cs
- Helper.cs
- InputLangChangeRequestEvent.cs
- CommandPlan.cs
- Simplifier.cs
- DataGridViewImageColumn.cs
- AsyncResult.cs
- Brush.cs
- Material.cs
- BindingContext.cs
- HtmlSelect.cs
- EventMappingSettingsCollection.cs
- UDPClient.cs
- KeyValueConfigurationElement.cs
- Update.cs
- DBSqlParser.cs
- DispatcherProcessingDisabled.cs
- SigningCredentials.cs
- StructuralObject.cs
- UnsafeNativeMethods.cs
- Repeater.cs
- ComplexTypeEmitter.cs
- VisualStyleElement.cs
- TableDetailsCollection.cs
- ScrollEventArgs.cs
- RNGCryptoServiceProvider.cs
- SamlAttributeStatement.cs
- CrossContextChannel.cs
- Types.cs
- JsonSerializer.cs
- CodeAssignStatement.cs
- DataBindingExpressionBuilder.cs
- TransactionScopeDesigner.cs
- Transform3DGroup.cs
- RepeaterDesigner.cs
- TextTreeUndoUnit.cs
- XmlBoundElement.cs
- AssemblyCache.cs
- PingOptions.cs
- ServicePointManager.cs