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
- QueryContinueDragEvent.cs
- SevenBitStream.cs
- AppDomainCompilerProxy.cs
- EntityContainer.cs
- LambdaCompiler.Statements.cs
- _PooledStream.cs
- CmsInterop.cs
- NamespaceEmitter.cs
- RowType.cs
- NativeMethods.cs
- IndexOutOfRangeException.cs
- ScrollData.cs
- MsmqInputMessage.cs
- WindowsSolidBrush.cs
- OpacityConverter.cs
- CodeVariableDeclarationStatement.cs
- ThreadStateException.cs
- ScalarOps.cs
- WebPartEditorCancelVerb.cs
- MonitoringDescriptionAttribute.cs
- NetTcpSection.cs
- panel.cs
- MarkupCompilePass1.cs
- TrimSurroundingWhitespaceAttribute.cs
- SelectionUIHandler.cs
- LogManagementAsyncResult.cs
- MultipartContentParser.cs
- TypeElementCollection.cs
- SoapExtensionImporter.cs
- TextRunCacheImp.cs
- Setter.cs
- DeviceContext.cs
- M3DUtil.cs
- _FtpDataStream.cs
- ComboBox.cs
- DataGridRowHeaderAutomationPeer.cs
- SplitContainer.cs
- SerializerProvider.cs
- ScrollBarAutomationPeer.cs
- ThreadInterruptedException.cs
- WaveHeader.cs
- ConfigurationValidatorAttribute.cs
- DictionaryItemsCollection.cs
- VirtualDirectoryMappingCollection.cs
- FullTextBreakpoint.cs
- WasHttpModulesInstallComponent.cs
- DbCommandDefinition.cs
- XmlAttributeOverrides.cs
- KnownBoxes.cs
- FormViewDeletedEventArgs.cs
- HotSpotCollection.cs
- BindableTemplateBuilder.cs
- DataContractSet.cs
- MouseDevice.cs
- HtmlTableRowCollection.cs
- Attributes.cs
- TextParentUndoUnit.cs
- XmlCDATASection.cs
- FlowDocumentReaderAutomationPeer.cs
- TypeToStringValueConverter.cs
- XmlUtil.cs
- CqlParser.cs
- DiscoveryEndpointValidator.cs
- DesignConnection.cs
- VirtualizedContainerService.cs
- DataServiceStreamResponse.cs
- CatalogUtil.cs
- Validator.cs
- UrlEncodedParameterWriter.cs
- DesignerActionGlyph.cs
- ValueType.cs
- EventMappingSettingsCollection.cs
- XPathDocument.cs
- ListBindingConverter.cs
- ControllableStoryboardAction.cs
- HebrewNumber.cs
- IdleTimeoutMonitor.cs
- MonikerBuilder.cs
- DrawingImage.cs
- EventArgs.cs
- QueryHandler.cs
- BitSet.cs
- WebPartsSection.cs
- StreamGeometry.cs
- XmlReader.cs
- StreamGeometryContext.cs
- ResourcePermissionBase.cs
- ContainerControl.cs
- IdentitySection.cs
- DbProviderSpecificTypePropertyAttribute.cs
- ReflectionUtil.cs
- ChtmlTextWriter.cs
- documentation.cs
- safelink.cs
- Misc.cs
- DesignerDataTable.cs
- TraceHandler.cs
- ToolStripItemCollection.cs
- ButtonChrome.cs
- TcpClientSocketManager.cs