Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- EncryptedReference.cs
- TextContainerChangedEventArgs.cs
- FieldInfo.cs
- columnmapkeybuilder.cs
- MultiPropertyDescriptorGridEntry.cs
- Pkcs7Recipient.cs
- SR.cs
- Part.cs
- Gdiplus.cs
- ThreadAbortException.cs
- TimeSpanValidatorAttribute.cs
- QilFunction.cs
- RelationshipConverter.cs
- SchemaObjectWriter.cs
- WebEventTraceProvider.cs
- Main.cs
- PlainXmlWriter.cs
- BaseDataList.cs
- ExtensionFile.cs
- SuppressMergeCheckAttribute.cs
- CommonDialog.cs
- ContractSearchPattern.cs
- DependencyPropertyHelper.cs
- WS2007HttpBindingElement.cs
- FrameworkElement.cs
- SqlSelectClauseBuilder.cs
- ObjectDataSourceStatusEventArgs.cs
- DataTableNameHandler.cs
- ObjectStorage.cs
- CombinedGeometry.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- BufferedGraphics.cs
- MouseEventArgs.cs
- XmlChildNodes.cs
- PrintDocument.cs
- MILUtilities.cs
- SimpleTextLine.cs
- AvTrace.cs
- OrderedDictionary.cs
- ThousandthOfEmRealPoints.cs
- RegionInfo.cs
- JumpList.cs
- WebPartZoneAutoFormat.cs
- ColumnWidthChangingEvent.cs
- TextSyndicationContent.cs
- CompositeActivityValidator.cs
- BitmapEffectInput.cs
- Encoder.cs
- XmlSchemaComplexContentExtension.cs
- DataGridColumnEventArgs.cs
- Vector3DCollection.cs
- EFAssociationProvider.cs
- DataGridViewRowPrePaintEventArgs.cs
- LastQueryOperator.cs
- SerializationException.cs
- SafeUserTokenHandle.cs
- SimpleLine.cs
- ArgumentValueSerializer.cs
- LocalizationCodeDomSerializer.cs
- SourceSwitch.cs
- ProtocolsConfiguration.cs
- SettingsSection.cs
- ImageCreator.cs
- DependencyObjectType.cs
- PageTheme.cs
- GroupByExpressionRewriter.cs
- SqlDataSourceWizardForm.cs
- ProtocolsSection.cs
- ListBoxItem.cs
- DoubleCollection.cs
- SiteMapDesignerDataSourceView.cs
- DesignTimeDataBinding.cs
- ButtonFlatAdapter.cs
- RoutedCommand.cs
- MachineSettingsSection.cs
- EventPrivateKey.cs
- QueryOperationResponseOfT.cs
- DataGridViewSelectedCellCollection.cs
- MsmqBindingElementBase.cs
- DataRecord.cs
- XmlSchemaSet.cs
- XmlSchemaCompilationSettings.cs
- unsafenativemethodsother.cs
- TemplateColumn.cs
- MenuItem.cs
- WindowsGraphics2.cs
- Serializer.cs
- TdsParserSessionPool.cs
- XmlUTF8TextWriter.cs
- SemaphoreSecurity.cs
- NetworkAddressChange.cs
- ParseNumbers.cs
- ChoiceConverter.cs
- PartialCachingControl.cs
- DataGridViewCellFormattingEventArgs.cs
- ProcessStartInfo.cs
- GradientBrush.cs
- TreeNodeStyleCollection.cs
- OleDbParameterCollection.cs
- TextParaClient.cs