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
- Normalization.cs
- XsdCachingReader.cs
- xsdvalidator.cs
- GeometryGroup.cs
- ExtenderProviderService.cs
- Cursor.cs
- GradientBrush.cs
- RewritingProcessor.cs
- NamedPermissionSet.cs
- RadioButton.cs
- BitmapCodecInfoInternal.cs
- SymbolDocumentGenerator.cs
- SpecularMaterial.cs
- AttributeEmitter.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- PointF.cs
- TableAdapterManagerMethodGenerator.cs
- HuffModule.cs
- IsolatedStorageException.cs
- InputChannelAcceptor.cs
- PackagePartCollection.cs
- ProxyGenerator.cs
- XmlRawWriterWrapper.cs
- PerformanceCountersElement.cs
- StateMachineSubscriptionManager.cs
- ListSourceHelper.cs
- HighlightVisual.cs
- ClusterUtils.cs
- FontStretchConverter.cs
- RawStylusInputCustomDataList.cs
- Underline.cs
- OleDbWrapper.cs
- FixedSOMContainer.cs
- ReadOnlyHierarchicalDataSource.cs
- SeparatorAutomationPeer.cs
- DefinitionProperties.cs
- Guid.cs
- _ConnectStream.cs
- Int16.cs
- SiteMapDataSourceView.cs
- Int32CAMarshaler.cs
- HMACSHA512.cs
- TextRangeSerialization.cs
- WebPartDescriptionCollection.cs
- listitem.cs
- RowToFieldTransformer.cs
- ErrorTableItemStyle.cs
- GlyphInfoList.cs
- CodeDirectiveCollection.cs
- WebPartConnectionsCloseVerb.cs
- RegexCaptureCollection.cs
- KnownBoxes.cs
- RepeatButton.cs
- DSASignatureDeformatter.cs
- ProgressBarRenderer.cs
- SqlClientWrapperSmiStreamChars.cs
- EntityDataSourceChangingEventArgs.cs
- SqlFunctionAttribute.cs
- GridEntry.cs
- MaskedTextBoxDesigner.cs
- __TransparentProxy.cs
- HashCodeCombiner.cs
- PageContentAsyncResult.cs
- ResourceCodeDomSerializer.cs
- XsdDuration.cs
- PEFileReader.cs
- StylusButtonCollection.cs
- transactioncontext.cs
- PartialCachingAttribute.cs
- nulltextnavigator.cs
- XmlUTF8TextReader.cs
- tooltip.cs
- validationstate.cs
- PropertyManager.cs
- HttpCachePolicyElement.cs
- SmiSettersStream.cs
- UnitySerializationHolder.cs
- XmlSchemaComplexContentExtension.cs
- OdbcConnectionPoolProviderInfo.cs
- DateTimeOffsetAdapter.cs
- Transform3DGroup.cs
- ListViewDeletedEventArgs.cs
- OdbcStatementHandle.cs
- ReliabilityContractAttribute.cs
- XsltLibrary.cs
- MiniModule.cs
- Thumb.cs
- panel.cs
- OpenFileDialog.cs
- GradientBrush.cs
- TimerTable.cs
- XmlImplementation.cs
- DataService.cs
- AdapterUtil.cs
- NotCondition.cs
- EventSinkHelperWriter.cs
- GridViewSortEventArgs.cs
- _SslStream.cs
- XPathPatternBuilder.cs
- SqlUtil.cs