Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- SqlUtil.cs
- DirectionalLight.cs
- CompressStream.cs
- SocketAddress.cs
- Win32.cs
- AssertFilter.cs
- DurationConverter.cs
- SessionParameter.cs
- IndexedEnumerable.cs
- XamlLoadErrorInfo.cs
- ControlCachePolicy.cs
- DesignerAttribute.cs
- MetadataArtifactLoaderCompositeResource.cs
- BindingContext.cs
- GcSettings.cs
- SendReply.cs
- WebSysDisplayNameAttribute.cs
- HealthMonitoringSectionHelper.cs
- ListChangedEventArgs.cs
- LinqDataSourceContextEventArgs.cs
- ValueUtilsSmi.cs
- TerminatorSinks.cs
- QilList.cs
- SignerInfo.cs
- SchemaImporterExtensionElement.cs
- TrackingParticipant.cs
- VisualBrush.cs
- ConstantCheck.cs
- ListView.cs
- _ConnectStream.cs
- BrowserCapabilitiesCodeGenerator.cs
- Parameter.cs
- ObjectDataSourceSelectingEventArgs.cs
- AnnotationAdorner.cs
- OuterGlowBitmapEffect.cs
- DesignSurfaceEvent.cs
- ListBindingConverter.cs
- StringPropertyBuilder.cs
- EditModeSwitchButton.cs
- ElapsedEventArgs.cs
- TableProviderWrapper.cs
- PKCS1MaskGenerationMethod.cs
- Message.cs
- SymLanguageType.cs
- QuestionEventArgs.cs
- coordinatorscratchpad.cs
- Pointer.cs
- VariableBinder.cs
- SqlInfoMessageEvent.cs
- ErrorWrapper.cs
- TextEmbeddedObject.cs
- DataRelation.cs
- RuleDefinitions.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- WorkflowDesignerColors.cs
- SecurityPolicyVersion.cs
- ProfilePropertySettings.cs
- Rect.cs
- ClientConfigPaths.cs
- HitTestDrawingContextWalker.cs
- ToolStripMenuItem.cs
- OleDbTransaction.cs
- DSACryptoServiceProvider.cs
- Errors.cs
- XPathNodeIterator.cs
- GridViewCancelEditEventArgs.cs
- OutputCache.cs
- PerformanceCounterManager.cs
- PropertyValueChangedEvent.cs
- ToolBar.cs
- SqlTypesSchemaImporter.cs
- MetadataCache.cs
- MultiAsyncResult.cs
- AdRotatorDesigner.cs
- ValidationHelper.cs
- ListViewItemEventArgs.cs
- SoapIncludeAttribute.cs
- FileDialogCustomPlacesCollection.cs
- Command.cs
- invalidudtexception.cs
- DataGridViewComboBoxEditingControl.cs
- CodeDirectionExpression.cs
- InternalResources.cs
- __Error.cs
- GuidelineCollection.cs
- DispatcherExceptionFilterEventArgs.cs
- StyleSheetRefUrlEditor.cs
- WizardSideBarListControlItem.cs
- ElementAtQueryOperator.cs
- CellNormalizer.cs
- SingleTagSectionHandler.cs
- LoginName.cs
- ApplicationFileCodeDomTreeGenerator.cs
- TextServicesDisplayAttribute.cs
- SignatureHelper.cs
- Main.cs
- Button.cs
- EmptyStringExpandableObjectConverter.cs
- ClientTargetSection.cs
- XsdDateTime.cs