Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / Dom / XmlLinkedNode.cs / 1305376 / 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
- ToolboxItemCollection.cs
- WSDualHttpSecurityMode.cs
- SystemIPv6InterfaceProperties.cs
- SpeechSeg.cs
- SchemaTableOptionalColumn.cs
- QilChoice.cs
- IndexerNameAttribute.cs
- CTreeGenerator.cs
- XmlWellformedWriter.cs
- EmbeddedMailObject.cs
- FixedSOMPageConstructor.cs
- TreeNode.cs
- FixedSOMImage.cs
- Pens.cs
- AsymmetricKeyExchangeFormatter.cs
- CommandBindingCollection.cs
- HttpDictionary.cs
- CodeEventReferenceExpression.cs
- XmlDataProvider.cs
- XmlSchemaValidationException.cs
- DataGridViewImageCell.cs
- RunInstallerAttribute.cs
- Group.cs
- NotCondition.cs
- AxisAngleRotation3D.cs
- ToolStripContentPanel.cs
- PageStatePersister.cs
- WindowsIPAddress.cs
- ApplicationSecurityInfo.cs
- Base64Stream.cs
- Vector3DAnimationBase.cs
- HitTestWithPointDrawingContextWalker.cs
- EditCommandColumn.cs
- Pens.cs
- DataGrid.cs
- XmlSchemaAttributeGroup.cs
- TextDecorationUnitValidation.cs
- ListMarkerLine.cs
- WebPartsSection.cs
- AutomationEvent.cs
- DataGridViewControlCollection.cs
- DelegateInArgument.cs
- XmlBoundElement.cs
- Rect3DValueSerializer.cs
- DynamicILGenerator.cs
- InputLanguage.cs
- XmlDigitalSignatureProcessor.cs
- MarginsConverter.cs
- CqlParser.cs
- ApplyHostConfigurationBehavior.cs
- BoundField.cs
- SelectionRangeConverter.cs
- SequenceDesigner.cs
- ToolStripItemImageRenderEventArgs.cs
- XmlNamespaceMappingCollection.cs
- RequestStatusBarUpdateEventArgs.cs
- MostlySingletonList.cs
- XmlElement.cs
- BinaryConverter.cs
- DrawListViewSubItemEventArgs.cs
- HttpAsyncResult.cs
- Command.cs
- ZoneMembershipCondition.cs
- TimeStampChecker.cs
- QilTernary.cs
- ReliableInputConnection.cs
- NameValuePair.cs
- WebExceptionStatus.cs
- returneventsaver.cs
- ParseHttpDate.cs
- ServiceChannelManager.cs
- webclient.cs
- DataRelationPropertyDescriptor.cs
- HtmlInputReset.cs
- Metadata.cs
- PolicyLevel.cs
- HandlerMappingMemo.cs
- FullTrustAssembliesSection.cs
- CodeTypeMember.cs
- ArrayList.cs
- RadioButtonList.cs
- Int16AnimationBase.cs
- AutomationIdentifierGuids.cs
- CustomCredentialPolicy.cs
- Menu.cs
- ServiceParser.cs
- InputScopeAttribute.cs
- Transform3D.cs
- FieldBuilder.cs
- ListViewInsertionMark.cs
- WindowsToolbarAsMenu.cs
- AnnotationHelper.cs
- MailBnfHelper.cs
- DataGridViewDataConnection.cs
- AddInBase.cs
- PropertyGridView.cs
- SmiEventSink_DeferedProcessing.cs
- HttpApplication.cs
- Registry.cs
- AdornerDecorator.cs