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
- RawKeyboardInputReport.cs
- WmfPlaceableFileHeader.cs
- Visual3D.cs
- TableParagraph.cs
- DocumentSequence.cs
- SymDocumentType.cs
- LinkedResource.cs
- ToolStripItemRenderEventArgs.cs
- FormViewPageEventArgs.cs
- SeekStoryboard.cs
- TracedNativeMethods.cs
- RuntimeResourceSet.cs
- ScrollProperties.cs
- XPathChildIterator.cs
- ArraySortHelper.cs
- ElasticEase.cs
- MemberProjectedSlot.cs
- CodeSubDirectoriesCollection.cs
- BitmapPalettes.cs
- ContentElementCollection.cs
- X509Utils.cs
- FixedSOMFixedBlock.cs
- XmlSerializableReader.cs
- TCPClient.cs
- Latin1Encoding.cs
- FlowLayoutPanel.cs
- SystemIcmpV6Statistics.cs
- ToolboxItemLoader.cs
- TextAutomationPeer.cs
- RegularExpressionValidator.cs
- Bitmap.cs
- MsmqIntegrationChannelFactory.cs
- XmlBinaryWriter.cs
- ScriptResourceInfo.cs
- MethodImplAttribute.cs
- StatusBarDesigner.cs
- Visual3DCollection.cs
- IndexedWhereQueryOperator.cs
- DoubleLink.cs
- InternalBase.cs
- InputReferenceExpression.cs
- FocusWithinProperty.cs
- ApplicationTrust.cs
- EntityAdapter.cs
- ToolStripItemBehavior.cs
- XmlBufferReader.cs
- InputElement.cs
- XsdSchemaFileEditor.cs
- ConfigurationValidatorBase.cs
- DataGridViewButtonCell.cs
- MetadataArtifactLoaderCompositeFile.cs
- FlowLayoutPanel.cs
- Section.cs
- SqlUserDefinedAggregateAttribute.cs
- IsolationInterop.cs
- RadioButton.cs
- CalendarTable.cs
- DataGridRowHeaderAutomationPeer.cs
- InternalTransaction.cs
- PaperSource.cs
- documentation.cs
- XmlnsCache.cs
- UriScheme.cs
- WebPartDisplayModeEventArgs.cs
- FixedSOMImage.cs
- DriveNotFoundException.cs
- SetterBaseCollection.cs
- ResolveCriteriaCD1.cs
- TemplatePartAttribute.cs
- ButtonField.cs
- UpdateCommand.cs
- HttpCacheParams.cs
- HttpModulesSection.cs
- DBPropSet.cs
- DataColumnMappingCollection.cs
- CodeExpressionStatement.cs
- Pens.cs
- InternalConfigRoot.cs
- ContextDataSource.cs
- XmlHierarchicalEnumerable.cs
- OutputCacheSettings.cs
- ObjectNavigationPropertyMapping.cs
- ByteViewer.cs
- BinaryReader.cs
- ACE.cs
- NamespaceMapping.cs
- StoreAnnotationsMap.cs
- StringCollectionMarkupSerializer.cs
- TargetControlTypeAttribute.cs
- BaseAddressElementCollection.cs
- InstallerTypeAttribute.cs
- CompModSwitches.cs
- WindowsGraphics2.cs
- ResourceSetExpression.cs
- PathGeometry.cs
- TimeManager.cs
- Byte.cs
- MLangCodePageEncoding.cs
- MouseActionValueSerializer.cs
- PropertyGeneratedEventArgs.cs