Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / Xml / System / Xml / Dom / XmlLinkedNode.cs / 1 / XmlLinkedNode.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml { // Gets the node immediately preceeding or following this node. public abstract class XmlLinkedNode: XmlNode { internal XmlLinkedNode next; internal XmlLinkedNode(): base() { next = null; } internal XmlLinkedNode( XmlDocument doc ): base( doc ) { next = null; } // Gets the node immediately preceding this node. public override XmlNode PreviousSibling { get { XmlNode parent = ParentNode; if (parent != null) { XmlNode node = parent.FirstChild; while (node != null) { XmlNode nextSibling = node.NextSibling; if (nextSibling == this) { break; } node = nextSibling; } return node; } return null; } } // Gets the node immediately following this node. public override XmlNode NextSibling { get { XmlNode parent = ParentNode; if (parent != null) { if (next != parent.FirstChild) return next; } return null; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml { // Gets the node immediately preceeding or following this node. public abstract class XmlLinkedNode: XmlNode { internal XmlLinkedNode next; internal XmlLinkedNode(): base() { next = null; } internal XmlLinkedNode( XmlDocument doc ): base( doc ) { next = null; } // Gets the node immediately preceding this node. public override XmlNode PreviousSibling { get { XmlNode parent = ParentNode; if (parent != null) { XmlNode node = parent.FirstChild; while (node != null) { XmlNode nextSibling = node.NextSibling; if (nextSibling == this) { break; } node = nextSibling; } return node; } return null; } } // Gets the node immediately following this node. public override XmlNode NextSibling { get { XmlNode parent = ParentNode; if (parent != null) { if (next != parent.FirstChild) return next; } return null; } } } } // 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
- ScriptReferenceEventArgs.cs
- HttpCapabilitiesEvaluator.cs
- MonitoringDescriptionAttribute.cs
- SubordinateTransaction.cs
- ComplexType.cs
- XmlSchemaComplexContentRestriction.cs
- Parameter.cs
- RequestTimeoutManager.cs
- precedingquery.cs
- WriteLine.cs
- WindowsStatusBar.cs
- X509Certificate.cs
- ValidationHelpers.cs
- RowBinding.cs
- Pipe.cs
- BuildProvider.cs
- PolyBezierSegment.cs
- RoleManagerSection.cs
- SecurityNegotiationException.cs
- FtpRequestCacheValidator.cs
- MSG.cs
- DeclarativeConditionsCollection.cs
- RangeExpression.cs
- MultiSelectRootGridEntry.cs
- XmlSchemaInclude.cs
- CompressionTransform.cs
- RawAppCommandInputReport.cs
- VariableElement.cs
- HtmlMeta.cs
- regiisutil.cs
- GacUtil.cs
- ItemsChangedEventArgs.cs
- SafeMemoryMappedFileHandle.cs
- SafeWaitHandle.cs
- PageEventArgs.cs
- FontWeightConverter.cs
- HttpWebRequestElement.cs
- Material.cs
- OpenTypeCommon.cs
- WCFServiceClientProxyGenerator.cs
- ToolStripLocationCancelEventArgs.cs
- SystemIPInterfaceProperties.cs
- WindowsStatic.cs
- ListItem.cs
- RC2.cs
- MouseWheelEventArgs.cs
- ByteStream.cs
- LoginUtil.cs
- TextFormatter.cs
- BindingNavigator.cs
- LoginUtil.cs
- FormViewModeEventArgs.cs
- XomlCompilerResults.cs
- DataServiceConfiguration.cs
- TextHintingModeValidation.cs
- DataListDesigner.cs
- DateTimeFormatInfoScanner.cs
- SessionEndingCancelEventArgs.cs
- ErrorFormatter.cs
- KeyedCollection.cs
- EventKeyword.cs
- ContextMenuStripGroup.cs
- EncoderReplacementFallback.cs
- shaperfactoryquerycachekey.cs
- DecoderReplacementFallback.cs
- DebuggerAttributes.cs
- RuleInfoComparer.cs
- Quaternion.cs
- AbandonedMutexException.cs
- QuaternionRotation3D.cs
- HttpInputStream.cs
- WebPartConnectionCollection.cs
- SuppressIldasmAttribute.cs
- EntityDataSourceColumn.cs
- GifBitmapDecoder.cs
- XDRSchema.cs
- RunClient.cs
- CompositeFontFamily.cs
- OleDbConnection.cs
- DataTableNameHandler.cs
- ProxyWebPartConnectionCollection.cs
- ExpressionConverter.cs
- ReferenceCountedObject.cs
- ProfileInfo.cs
- DrawingState.cs
- ThreadStartException.cs
- DataSvcMapFile.cs
- FastEncoderWindow.cs
- XmlEntity.cs
- DataBindingList.cs
- ListView.cs
- CellLabel.cs
- MoveSizeWinEventHandler.cs
- ImageUrlEditor.cs
- EdmError.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- PersistenceTypeAttribute.cs
- PropertyReferenceSerializer.cs
- ClrPerspective.cs
- HtmlInputReset.cs