Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- LogicalExpr.cs
- FrameworkElement.cs
- ResizeGrip.cs
- XmlSchemaComplexContent.cs
- SafeNativeMethods.cs
- GlobalItem.cs
- UrlPath.cs
- Pair.cs
- LayoutSettings.cs
- DiscoveryClientProtocol.cs
- HtmlElementEventArgs.cs
- PropertyTabAttribute.cs
- CultureMapper.cs
- ProcessManager.cs
- DataGridViewRowPrePaintEventArgs.cs
- ErrorProvider.cs
- XmlWhitespace.cs
- WhitespaceRuleLookup.cs
- TypeConverterHelper.cs
- TypeToken.cs
- CodeDirectionExpression.cs
- ExecutionEngineException.cs
- ColorMatrix.cs
- ProtectedConfigurationSection.cs
- SecurityIdentifierElementCollection.cs
- DLinqColumnProvider.cs
- NetDispatcherFaultException.cs
- CommandTreeTypeHelper.cs
- GridViewPageEventArgs.cs
- SplitContainer.cs
- AsymmetricSignatureFormatter.cs
- ListView.cs
- LayoutManager.cs
- SharedStatics.cs
- EntityClassGenerator.cs
- SafeNativeMethods.cs
- DataObjectSettingDataEventArgs.cs
- DataRow.cs
- ListViewItem.cs
- EncoderReplacementFallback.cs
- DateTimeConverter2.cs
- CacheVirtualItemsEvent.cs
- AmbientProperties.cs
- XPathBinder.cs
- ContentTextAutomationPeer.cs
- XmlResolver.cs
- InvalidPrinterException.cs
- WebConfigurationHost.cs
- RelativeSource.cs
- HtmlShim.cs
- X509Chain.cs
- ClockController.cs
- TabRenderer.cs
- BooleanFacetDescriptionElement.cs
- BitConverter.cs
- InkCanvas.cs
- AmbientProperties.cs
- SemaphoreFullException.cs
- COM2ExtendedTypeConverter.cs
- ProfileEventArgs.cs
- BaseTemplateBuildProvider.cs
- ControlPaint.cs
- FullTextBreakpoint.cs
- Geometry3D.cs
- invalidudtexception.cs
- SettingsPropertyValueCollection.cs
- AccessControlEntry.cs
- ProfileModule.cs
- NameValuePair.cs
- SelectionProviderWrapper.cs
- KeyTimeConverter.cs
- ListBindingConverter.cs
- ThicknessAnimationUsingKeyFrames.cs
- SystemTcpStatistics.cs
- RoutedPropertyChangedEventArgs.cs
- HtmlElementEventArgs.cs
- IgnoreSectionHandler.cs
- FunctionOverloadResolver.cs
- OLEDB_Enum.cs
- shaperfactoryquerycachekey.cs
- XmlSerializer.cs
- TextEditorParagraphs.cs
- HttpRuntimeSection.cs
- XmlSchemaObjectCollection.cs
- BitmapInitialize.cs
- BamlReader.cs
- StatusBarItem.cs
- WindowsToolbarItemAsMenuItem.cs
- FieldDescriptor.cs
- AlphabeticalEnumConverter.cs
- PeekCompletedEventArgs.cs
- Comparer.cs
- JoinSymbol.cs
- DeferredSelectedIndexReference.cs
- SQLInt32.cs
- HashCodeCombiner.cs
- Image.cs
- InheritanceUI.cs
- UpdatePanelTriggerCollection.cs
- RegularExpressionValidator.cs