Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- SupportingTokenChannel.cs
- MarkupWriter.cs
- HttpCookieCollection.cs
- FilterQueryOptionExpression.cs
- GlobalProxySelection.cs
- RootAction.cs
- BitVec.cs
- WindowsScrollBar.cs
- OrderPreservingPipeliningMergeHelper.cs
- Content.cs
- PersonalizationStateInfo.cs
- RegexCode.cs
- COM2PropertyBuilderUITypeEditor.cs
- DataColumnMappingCollection.cs
- DefaultEventAttribute.cs
- SimpleMailWebEventProvider.cs
- COM2ExtendedBrowsingHandler.cs
- TemplatePartAttribute.cs
- KeyValueConfigurationElement.cs
- EntityModelBuildProvider.cs
- ToolStripDropDown.cs
- UnmanagedMarshal.cs
- TripleDES.cs
- Base64Encoding.cs
- QilScopedVisitor.cs
- HttpRuntime.cs
- path.cs
- PLINQETWProvider.cs
- CodeDOMProvider.cs
- InstanceDataCollection.cs
- SafeLibraryHandle.cs
- CommandBinding.cs
- DataGridViewRowPrePaintEventArgs.cs
- EncryptedData.cs
- sqlinternaltransaction.cs
- RepeatEnumerable.cs
- EventOpcode.cs
- ListViewDeletedEventArgs.cs
- EventDrivenDesigner.cs
- ApplicationManager.cs
- VisualStyleElement.cs
- SHA256.cs
- EventQueueState.cs
- SafeViewOfFileHandle.cs
- Types.cs
- Cursors.cs
- EncodingNLS.cs
- NetStream.cs
- TrueReadOnlyCollection.cs
- XdrBuilder.cs
- DataObjectCopyingEventArgs.cs
- PageAsyncTask.cs
- ToolStripMenuItemDesigner.cs
- SplashScreen.cs
- FocusWithinProperty.cs
- _UriSyntax.cs
- PackWebRequest.cs
- FormViewDeleteEventArgs.cs
- ExpressionBuilderContext.cs
- DocComment.cs
- DataComponentNameHandler.cs
- ControlParameter.cs
- TypeBrowserDialog.cs
- Visual3D.cs
- LabelDesigner.cs
- KeyPressEvent.cs
- SessionStateItemCollection.cs
- PenThreadWorker.cs
- MenuItemStyle.cs
- PagerSettings.cs
- WebPartZoneBase.cs
- ObjectStateEntryDbDataRecord.cs
- RelationshipEndMember.cs
- AuthenticationSection.cs
- PhotoPrintingIntent.cs
- HttpApplication.cs
- InfoCardMasterKey.cs
- BindingsCollection.cs
- OptimizedTemplateContentHelper.cs
- InkCanvasInnerCanvas.cs
- ZoomPercentageConverter.cs
- CheckBox.cs
- KnownBoxes.cs
- CaseInsensitiveHashCodeProvider.cs
- TextTreeText.cs
- HttpServerChannel.cs
- HttpListenerResponse.cs
- OracleCommandBuilder.cs
- _DomainName.cs
- OutKeywords.cs
- XAMLParseException.cs
- CreateInstanceBinder.cs
- TextEditorSelection.cs
- UIPermission.cs
- basenumberconverter.cs
- QilVisitor.cs
- DBBindings.cs
- ConsumerConnectionPoint.cs
- StorageEntitySetMapping.cs
- MonitorWrapper.cs