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
- OleDbTransaction.cs
- CatchBlock.cs
- GridViewUpdatedEventArgs.cs
- SystemResources.cs
- SecurityTokenAuthenticator.cs
- AttachInfo.cs
- SimpleTextLine.cs
- _IPv4Address.cs
- ObjectDataSourceDesigner.cs
- AccessorTable.cs
- ConfigXmlAttribute.cs
- XmlAggregates.cs
- ConfigXmlCDataSection.cs
- CompensateDesigner.cs
- HostProtectionPermission.cs
- ValidationPropertyAttribute.cs
- PrintEvent.cs
- LambdaValue.cs
- XmlBaseWriter.cs
- AppSettingsExpressionEditor.cs
- LinqDataSourceSelectEventArgs.cs
- FixedElement.cs
- PropertyDescriptors.cs
- _NegoStream.cs
- AbsoluteQuery.cs
- DataGridColumnReorderingEventArgs.cs
- HtmlTitle.cs
- SafePEFileHandle.cs
- EntityTypeBase.cs
- DebugTrace.cs
- ProvidePropertyAttribute.cs
- BoundColumn.cs
- SQLUtility.cs
- InputScopeManager.cs
- ColumnClickEvent.cs
- DoubleAnimationUsingPath.cs
- GeometryCollection.cs
- OracleRowUpdatedEventArgs.cs
- LocalServiceSecuritySettingsElement.cs
- EntityTransaction.cs
- SmiConnection.cs
- xsdvalidator.cs
- DesignerObjectListAdapter.cs
- DefaultSection.cs
- ZipPackagePart.cs
- Int32CollectionConverter.cs
- DataGridViewEditingControlShowingEventArgs.cs
- PropertyPath.cs
- RuleSettings.cs
- ProtocolViolationException.cs
- TouchesOverProperty.cs
- DataRelation.cs
- JumpPath.cs
- ComponentEditorForm.cs
- FormsAuthenticationCredentials.cs
- VBIdentifierTrimConverter.cs
- SecurityProtocol.cs
- AppPool.cs
- ObjectStateManager.cs
- PropagationProtocolsTracing.cs
- GeometryDrawing.cs
- XslUrlEditor.cs
- CacheChildrenQuery.cs
- CodePageUtils.cs
- NewExpression.cs
- IOException.cs
- GradientStop.cs
- HTMLTagNameToTypeMapper.cs
- ViewStateException.cs
- CodeTypeConstructor.cs
- DoubleCollectionConverter.cs
- PointLightBase.cs
- DataTemplateSelector.cs
- CleanUpVirtualizedItemEventArgs.cs
- DesignTimeParseData.cs
- DataServiceKeyAttribute.cs
- TripleDESCryptoServiceProvider.cs
- FormattedTextSymbols.cs
- XamlTypeMapper.cs
- TypedDataSetSchemaImporterExtensionFx35.cs
- BinaryReader.cs
- ValidatingReaderNodeData.cs
- MessageBox.cs
- XmlStreamStore.cs
- GenericEnumerator.cs
- HyperLinkColumn.cs
- BindUriHelper.cs
- XmlSerializerSection.cs
- TableCell.cs
- RelationshipConverter.cs
- CqlParserHelpers.cs
- BuildDependencySet.cs
- ErrorInfoXmlDocument.cs
- AssemblyInfo.cs
- PipelineModuleStepContainer.cs
- EncryptedPackage.cs
- HtmlInputControl.cs
- PixelShader.cs
- RecognizerStateChangedEventArgs.cs
- ValueUtilsSmi.cs