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
- InternalTypeHelper.cs
- SiteMap.cs
- httpstaticobjectscollection.cs
- RightNameExpirationInfoPair.cs
- SocketElement.cs
- DbConnectionInternal.cs
- TickBar.cs
- HtmlTextArea.cs
- ControlCollection.cs
- PersistenceContextEnlistment.cs
- XamlTemplateSerializer.cs
- RegexWriter.cs
- LayoutEvent.cs
- EmptyCollection.cs
- TemplateManager.cs
- MimeWriter.cs
- PassportIdentity.cs
- _MultipleConnectAsync.cs
- RtfFormatStack.cs
- ContextMenuService.cs
- XmlSchemaSimpleTypeRestriction.cs
- DataBindingExpressionBuilder.cs
- ValidationPropertyAttribute.cs
- EnumUnknown.cs
- SqlDataSourceSelectingEventArgs.cs
- DescendantBaseQuery.cs
- CaretElement.cs
- JoinSymbol.cs
- TrackingRecord.cs
- BindingElementExtensionElement.cs
- TypeUnloadedException.cs
- GridErrorDlg.cs
- ObjRef.cs
- StrongTypingException.cs
- _Rfc2616CacheValidators.cs
- DataGridViewRowEventArgs.cs
- XmlConvert.cs
- ScrollBar.cs
- CompositionAdorner.cs
- ReliableMessagingHelpers.cs
- RootDesignerSerializerAttribute.cs
- TextBoxBase.cs
- PtsPage.cs
- DataListItem.cs
- WebPartCloseVerb.cs
- ListItemConverter.cs
- Part.cs
- AudioFormatConverter.cs
- TypeNameConverter.cs
- SqlProfileProvider.cs
- DPCustomTypeDescriptor.cs
- DecoratedNameAttribute.cs
- PolyBezierSegment.cs
- NavigateUrlConverter.cs
- ScriptControlDescriptor.cs
- OrderPreservingPipeliningMergeHelper.cs
- StringKeyFrameCollection.cs
- DateTimeValueSerializer.cs
- HwndHostAutomationPeer.cs
- SqlDataSourceView.cs
- PackWebResponse.cs
- LinkArea.cs
- RuleInfoComparer.cs
- DataGridViewTextBoxColumn.cs
- TaskFormBase.cs
- Soap.cs
- TwoPhaseCommitProxy.cs
- ApplicationCommands.cs
- DataListCommandEventArgs.cs
- BrowserTree.cs
- EventInfo.cs
- columnmapkeybuilder.cs
- RequestUriProcessor.cs
- BitmapImage.cs
- RegexTree.cs
- SqlStatistics.cs
- InvalidPropValue.cs
- WebPartMinimizeVerb.cs
- SelectionEditor.cs
- WindowsContainer.cs
- GroupByQueryOperator.cs
- ProfileEventArgs.cs
- TransactionInterop.cs
- X509CertificateChain.cs
- ReachDocumentPageSerializer.cs
- InfoCardMetadataExchangeClient.cs
- Int32Converter.cs
- FontWeight.cs
- XmlSchemaCollection.cs
- ContractInferenceHelper.cs
- FileSystemEventArgs.cs
- DbParameterCollection.cs
- Vector3dCollection.cs
- ModelMemberCollection.cs
- MenuScrollingVisibilityConverter.cs
- __Filters.cs
- XmlIlTypeHelper.cs
- MutexSecurity.cs
- DebugHandleTracker.cs
- InvalidOleVariantTypeException.cs