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
- TableRow.cs
- WebHttpBehavior.cs
- XPathDocument.cs
- DesignerCategoryAttribute.cs
- ExpressionBuilderCollection.cs
- Scripts.cs
- ImportCatalogPart.cs
- Base64Decoder.cs
- AccessorTable.cs
- AuthenticationModeHelper.cs
- GregorianCalendar.cs
- DashStyles.cs
- DecoderBestFitFallback.cs
- RectAnimationClockResource.cs
- Certificate.cs
- RemoteCryptoTokenProvider.cs
- DBSchemaRow.cs
- SqlFunctionAttribute.cs
- precedingquery.cs
- ReadOnlyAttribute.cs
- SQLSingleStorage.cs
- XPathNavigatorReader.cs
- NestPullup.cs
- DataGridGeneralPage.cs
- DataSetMappper.cs
- future.cs
- TypeInformation.cs
- ListItem.cs
- HtmlElement.cs
- HtmlInputText.cs
- SR.cs
- DataGridViewRowEventArgs.cs
- GenericWebPart.cs
- EventLogLink.cs
- XmlIterators.cs
- SystemParameters.cs
- BeginCreateSecurityTokenRequest.cs
- InputProcessorProfiles.cs
- PostBackOptions.cs
- ExtensionDataObject.cs
- ProfilePropertySettings.cs
- OutputScopeManager.cs
- DesignTimeParseData.cs
- Cursor.cs
- MD5.cs
- WebBrowserNavigatingEventHandler.cs
- IdentityHolder.cs
- ServiceOperationDetailViewControl.cs
- XamlBuildProvider.cs
- Compiler.cs
- UserValidatedEventArgs.cs
- RuleInfoComparer.cs
- MouseEvent.cs
- Events.cs
- WSDualHttpSecurityMode.cs
- CustomErrorsSection.cs
- DataFormats.cs
- BindingExpressionBase.cs
- InheritedPropertyChangedEventArgs.cs
- Separator.cs
- ScriptingAuthenticationServiceSection.cs
- TransformGroup.cs
- VisualStyleElement.cs
- Attributes.cs
- HttpInputStream.cs
- CreateUserWizard.cs
- HttpUnhandledOperationInvoker.cs
- TextBox.cs
- ScrollEventArgs.cs
- RoleManagerModule.cs
- UriTemplateCompoundPathSegment.cs
- ProcessModule.cs
- FacetDescription.cs
- ImageList.cs
- SqlMetaData.cs
- PreProcessor.cs
- SkewTransform.cs
- XmlSortKey.cs
- PowerEase.cs
- ClientBuildManagerCallback.cs
- GroupStyle.cs
- WSDualHttpSecurityElement.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- sqlmetadatafactory.cs
- SegmentTree.cs
- FormatVersion.cs
- ExpressionBindingCollection.cs
- CharAnimationUsingKeyFrames.cs
- PropertyValidationContext.cs
- StylusPointProperty.cs
- DbConnectionOptions.cs
- TransformerInfoCollection.cs
- ListViewGroup.cs
- Scripts.cs
- XhtmlTextWriter.cs
- DataSourceExpressionCollection.cs
- SQLString.cs
- InkCollectionBehavior.cs
- ResourceContainer.cs
- DelegatedStream.cs