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
- Substitution.cs
- IRCollection.cs
- RepeatButton.cs
- ScriptingAuthenticationServiceSection.cs
- OleDbSchemaGuid.cs
- MessageQueue.cs
- SafeNativeMethods.cs
- SqlFileStream.cs
- ArraySet.cs
- DataAdapter.cs
- PlaceHolder.cs
- ClonableStack.cs
- TypeForwardedToAttribute.cs
- ProcessInfo.cs
- ComplexPropertyEntry.cs
- ObjectDisposedException.cs
- QilValidationVisitor.cs
- ObjectRef.cs
- AnonymousIdentificationSection.cs
- SoapHeaderAttribute.cs
- WindowsTokenRoleProvider.cs
- IndexedString.cs
- XmlSchemaInclude.cs
- Quaternion.cs
- ListViewSelectEventArgs.cs
- RectangleGeometry.cs
- MimeImporter.cs
- VarInfo.cs
- exports.cs
- LogStream.cs
- EventProviderClassic.cs
- SQLBinary.cs
- AsymmetricKeyExchangeDeformatter.cs
- ScrollItemProviderWrapper.cs
- CroppedBitmap.cs
- HwndSourceParameters.cs
- ProjectionNode.cs
- BooleanStorage.cs
- DetailsViewPageEventArgs.cs
- AsyncStreamReader.cs
- XmlNamespaceDeclarationsAttribute.cs
- CssStyleCollection.cs
- WrappedReader.cs
- XslException.cs
- Model3D.cs
- SqlUtils.cs
- Bidi.cs
- Matrix3D.cs
- MethodCallTranslator.cs
- HashAlgorithm.cs
- Facet.cs
- Privilege.cs
- SiteMapDataSource.cs
- ListViewTableCell.cs
- DynamicActionMessageFilter.cs
- DataBoundControlDesigner.cs
- SourceInterpreter.cs
- FileLogRecordEnumerator.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- TextRange.cs
- DesignTimeTemplateParser.cs
- ApplicationGesture.cs
- ObjectHandle.cs
- UserNameServiceElement.cs
- IssuedSecurityTokenParameters.cs
- ConfigXmlComment.cs
- DataGridViewTopLeftHeaderCell.cs
- DictationGrammar.cs
- DropTarget.cs
- SystemColorTracker.cs
- WmlFormAdapter.cs
- QueryCursorEventArgs.cs
- CustomCategoryAttribute.cs
- DllHostedComPlusServiceHost.cs
- SymmetricAlgorithm.cs
- DoubleLinkListEnumerator.cs
- ApplicationHost.cs
- ADMembershipProvider.cs
- ClientSettingsSection.cs
- BackgroundFormatInfo.cs
- SoapElementAttribute.cs
- HttpPostServerProtocol.cs
- EditingScopeUndoUnit.cs
- SQLInt16Storage.cs
- ContextBase.cs
- DrawingContextWalker.cs
- ScaleTransform3D.cs
- MimeAnyImporter.cs
- X509Certificate2.cs
- StreamingContext.cs
- Rotation3D.cs
- MappingException.cs
- StateItem.cs
- WebPartTransformer.cs
- SchemaAttDef.cs
- ProxyHwnd.cs
- StringInfo.cs
- SequentialOutput.cs
- DBCommandBuilder.cs
- CaseInsensitiveComparer.cs