Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- AttributeCollection.cs
- PathGeometry.cs
- PaperSource.cs
- SymbolEqualComparer.cs
- AuthenticatedStream.cs
- CallbackTimeoutsBehavior.cs
- Range.cs
- ProxyHwnd.cs
- ConfigXmlReader.cs
- CmsInterop.cs
- Encoder.cs
- TextOutput.cs
- ZoneMembershipCondition.cs
- View.cs
- StrongTypingException.cs
- SqlXml.cs
- SelectionGlyph.cs
- TemplateComponentConnector.cs
- DateTimeOffset.cs
- DynamicQueryableWrapper.cs
- AppearanceEditorPart.cs
- InvokeBinder.cs
- SqlClientMetaDataCollectionNames.cs
- ToolStripOverflowButton.cs
- ToolStripRenderEventArgs.cs
- SymLanguageType.cs
- RuntimeHandles.cs
- SchemaMapping.cs
- WebEncodingValidatorAttribute.cs
- CommandBindingCollection.cs
- X509SecurityToken.cs
- CollectionBuilder.cs
- ThumbAutomationPeer.cs
- ProviderIncompatibleException.cs
- MenuAdapter.cs
- DictionarySectionHandler.cs
- Connector.xaml.cs
- EncryptedKey.cs
- ExclusiveCanonicalizationTransform.cs
- UpWmlPageAdapter.cs
- ListDataBindEventArgs.cs
- UIElementHelper.cs
- RuleRef.cs
- CodeChecksumPragma.cs
- StreamingContext.cs
- PersonalizableTypeEntry.cs
- TextCharacters.cs
- PeerNameResolver.cs
- SecurityTimestamp.cs
- PropertyEmitterBase.cs
- WebBrowserDocumentCompletedEventHandler.cs
- HandlerBase.cs
- TemplateBuilder.cs
- SignatureDescription.cs
- KeyEventArgs.cs
- XmlConvert.cs
- DateTimeOffsetConverter.cs
- TakeOrSkipQueryOperator.cs
- ServiceTimeoutsBehavior.cs
- SqlStatistics.cs
- PartitionedStreamMerger.cs
- ReachUIElementCollectionSerializerAsync.cs
- ConfigXmlComment.cs
- ModuleElement.cs
- CopyEncoder.cs
- List.cs
- SchemaAttDef.cs
- DataGridGeneralPage.cs
- StandardBindingElement.cs
- BufferModesCollection.cs
- WebPartZoneBase.cs
- DispatcherProcessingDisabled.cs
- RequestQueryProcessor.cs
- ThrowHelper.cs
- SupportingTokenBindingElement.cs
- Compilation.cs
- EnumBuilder.cs
- AttributedMetaModel.cs
- ExpressionBinding.cs
- CacheAxisQuery.cs
- RotateTransform3D.cs
- ActivityMarkupSerializer.cs
- TypeForwardedToAttribute.cs
- XNodeSchemaApplier.cs
- NonParentingControl.cs
- RegexCompilationInfo.cs
- ToolZone.cs
- SchemaSetCompiler.cs
- AlignmentYValidation.cs
- DynamicEndpoint.cs
- StylusPointProperty.cs
- ConfigurationValue.cs
- ComplusTypeValidator.cs
- AttributeCollection.cs
- ActiveXSerializer.cs
- PreservationFileWriter.cs
- PeerNameRegistration.cs
- OverflowException.cs
- TypeConverter.cs
- ParsedRoute.cs