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
- ClientTargetCollection.cs
- CompleteWizardStep.cs
- WeakHashtable.cs
- DataControlImageButton.cs
- WebPartCatalogAddVerb.cs
- ControlUtil.cs
- WebPartDisplayModeCollection.cs
- DBCSCodePageEncoding.cs
- keycontainerpermission.cs
- TypeInfo.cs
- KeyPressEvent.cs
- StringHelper.cs
- MaskDescriptors.cs
- MappingException.cs
- SplitterDesigner.cs
- KeyGesture.cs
- TreeNodeMouseHoverEvent.cs
- EntityContainerEmitter.cs
- EntityModelSchemaGenerator.cs
- HandleRef.cs
- ButtonField.cs
- WebBrowsableAttribute.cs
- storepermission.cs
- BitmapEncoder.cs
- __Error.cs
- SafeProcessHandle.cs
- HttpConfigurationContext.cs
- SpinWait.cs
- SignalGate.cs
- UserValidatedEventArgs.cs
- HostingPreferredMapPath.cs
- recordstatescratchpad.cs
- PropertyStore.cs
- ISAPIRuntime.cs
- BooleanSwitch.cs
- StickyNote.cs
- _ContextAwareResult.cs
- EventSourceCreationData.cs
- XmlDataSource.cs
- datacache.cs
- SchemaConstraints.cs
- ScopelessEnumAttribute.cs
- HttpProfileGroupBase.cs
- FrameworkElement.cs
- StaticResourceExtension.cs
- ConnectionInterfaceCollection.cs
- HtmlElementCollection.cs
- EntityChangedParams.cs
- ObjectDataSourceView.cs
- XPathAxisIterator.cs
- DataErrorValidationRule.cs
- XmlRawWriter.cs
- WebPartConnectionsCancelVerb.cs
- WebBaseEventKeyComparer.cs
- OperationPickerDialog.cs
- WSFederationHttpSecurityElement.cs
- Int64AnimationUsingKeyFrames.cs
- GeneralTransformGroup.cs
- AncillaryOps.cs
- FileLoadException.cs
- KnownBoxes.cs
- DecimalConstantAttribute.cs
- XmlStreamStore.cs
- GrammarBuilderDictation.cs
- ConfigurationLocationCollection.cs
- XmlCDATASection.cs
- ExtentCqlBlock.cs
- RoutedEventConverter.cs
- StrongNameKeyPair.cs
- ChannelServices.cs
- Token.cs
- Transform3DGroup.cs
- FileDialogCustomPlacesCollection.cs
- TextOptions.cs
- ElementHostPropertyMap.cs
- XmlSchemaComplexContentExtension.cs
- XPathMessageContext.cs
- MimeParameters.cs
- WebContext.cs
- ToolboxItemWrapper.cs
- XmlMtomWriter.cs
- DispatchChannelSink.cs
- MediaContext.cs
- RotateTransform3D.cs
- TreeNodeBindingCollection.cs
- StreamSecurityUpgradeAcceptor.cs
- IntSecurity.cs
- Attachment.cs
- Crc32Helper.cs
- ReferencedCollectionType.cs
- TargetControlTypeCache.cs
- DirectoryInfo.cs
- ApplicationServicesHostFactory.cs
- SchemaTypeEmitter.cs
- login.cs
- WebPartDisplayModeCollection.cs
- TransactionManager.cs
- PolicyLevel.cs
- QueryAccessibilityHelpEvent.cs
- SqlColumnizer.cs