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
- JpegBitmapDecoder.cs
- QueryResultOp.cs
- Accessors.cs
- SchemaType.cs
- HttpResponseInternalWrapper.cs
- GridViewDeletedEventArgs.cs
- NativeRecognizer.cs
- ProfileBuildProvider.cs
- PasswordTextNavigator.cs
- ReadOnlyDictionary.cs
- IndexedGlyphRun.cs
- XmlNavigatorStack.cs
- _IPv6Address.cs
- _NegoState.cs
- DynamicDocumentPaginator.cs
- PathNode.cs
- _NegoStream.cs
- DataSourceProvider.cs
- AutoResizedEvent.cs
- SequentialOutput.cs
- HttpTransportSecurity.cs
- TextCompositionEventArgs.cs
- TableLayoutPanelResizeGlyph.cs
- AuthStoreRoleProvider.cs
- PathFigureCollectionConverter.cs
- XmlSchemaImport.cs
- Message.cs
- DrawingVisual.cs
- ReferencedCollectionType.cs
- RuntimeConfig.cs
- MimeFormReflector.cs
- MethodMessage.cs
- BitmapEffect.cs
- NavigationPropertyAccessor.cs
- ButtonBaseAdapter.cs
- MenuItem.cs
- ObfuscateAssemblyAttribute.cs
- Exceptions.cs
- DataGridViewCellStyleChangedEventArgs.cs
- followingquery.cs
- FrameworkElement.cs
- DataSetMappper.cs
- FuncTypeConverter.cs
- TreeViewEvent.cs
- MethodBuilder.cs
- ISCIIEncoding.cs
- OracleString.cs
- PrintEvent.cs
- D3DImage.cs
- NetDataContractSerializer.cs
- SByteConverter.cs
- XhtmlTextWriter.cs
- ClientRolePrincipal.cs
- Atom10FormatterFactory.cs
- EntityDataSourceDataSelection.cs
- LifetimeMonitor.cs
- SoapSchemaExporter.cs
- ContentElementAutomationPeer.cs
- ProtocolsConfigurationEntry.cs
- ECDiffieHellmanCngPublicKey.cs
- FormsAuthenticationCredentials.cs
- PageParser.cs
- XmlNamespaceMapping.cs
- SafeEventLogWriteHandle.cs
- OutputCacheSettingsSection.cs
- RequestResizeEvent.cs
- ConnectionString.cs
- ServiceCredentialsElement.cs
- TextOptionsInternal.cs
- Baml2006KeyRecord.cs
- _CacheStreams.cs
- TransactedReceiveData.cs
- WasNotInstalledException.cs
- SmtpDigestAuthenticationModule.cs
- AccessedThroughPropertyAttribute.cs
- Random.cs
- BinaryMethodMessage.cs
- ExtensibleClassFactory.cs
- TempFiles.cs
- _HeaderInfo.cs
- Ticks.cs
- DynamicPropertyHolder.cs
- RadioButtonPopupAdapter.cs
- XsdCachingReader.cs
- InheritanceAttribute.cs
- ToolBarPanel.cs
- PolyBezierSegment.cs
- GcSettings.cs
- HtmlInputFile.cs
- SocketElement.cs
- DataGridAutomationPeer.cs
- AssemblyCollection.cs
- MediaCommands.cs
- UshortList2.cs
- DetailsViewInsertEventArgs.cs
- ApplicationException.cs
- PageSetupDialog.cs
- XPathNavigatorReader.cs
- SafeFileMappingHandle.cs
- TextEndOfSegment.cs