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
- PolyBezierSegment.cs
- CursorConverter.cs
- AuthStoreRoleProvider.cs
- ToolStripPanelRow.cs
- ExpressionBindings.cs
- Token.cs
- keycontainerpermission.cs
- WindowHideOrCloseTracker.cs
- X509PeerCertificateAuthentication.cs
- TextBoxBase.cs
- StylusSystemGestureEventArgs.cs
- SizeAnimationBase.cs
- Content.cs
- WinCategoryAttribute.cs
- DbParameterHelper.cs
- VerticalAlignConverter.cs
- CodeTypeParameter.cs
- SafeRegistryHandle.cs
- RemoteArgument.cs
- XamlClipboardData.cs
- SQLResource.cs
- StrokeSerializer.cs
- ScriptControlDescriptor.cs
- FloatAverageAggregationOperator.cs
- NamespaceMapping.cs
- CompilationUnit.cs
- TimeoutValidationAttribute.cs
- OperationParameterInfoCollection.cs
- ViewBox.cs
- FixedSchema.cs
- CacheAxisQuery.cs
- AlignmentYValidation.cs
- TextEditorSpelling.cs
- ContractsBCL.cs
- XmlDataCollection.cs
- ConfigXmlComment.cs
- SpellCheck.cs
- SessionStateSection.cs
- XPathEmptyIterator.cs
- FormsAuthenticationUserCollection.cs
- NullableLongMinMaxAggregationOperator.cs
- SymbolEqualComparer.cs
- SQLString.cs
- TextLineBreak.cs
- DataStorage.cs
- NativeCppClassAttribute.cs
- __ComObject.cs
- AvTraceDetails.cs
- PageThemeParser.cs
- ContravarianceAdapter.cs
- XmlSchemaAnnotation.cs
- PropertyInformation.cs
- AmbiguousMatchException.cs
- ObjectStateManager.cs
- MatrixTransform.cs
- TableLayoutColumnStyleCollection.cs
- GradientStopCollection.cs
- SqlGatherConsumedAliases.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- SqlCaseSimplifier.cs
- ApplicationServicesHostFactory.cs
- BindingBase.cs
- CornerRadius.cs
- IndependentlyAnimatedPropertyMetadata.cs
- URLAttribute.cs
- UrlPropertyAttribute.cs
- SchemaImporterExtensionElement.cs
- CodeGenHelper.cs
- Point.cs
- StringDictionary.cs
- ProfileGroupSettings.cs
- DesignerExtenders.cs
- TypedElement.cs
- WorkflowInstanceExtensionCollection.cs
- AssociationTypeEmitter.cs
- WebUtil.cs
- DynamicObject.cs
- QueryHandler.cs
- TextBoxBase.cs
- DefaultValidator.cs
- SectionInformation.cs
- ToolboxBitmapAttribute.cs
- OAVariantLib.cs
- WindowsPrincipal.cs
- DataControlFieldCell.cs
- AnimationException.cs
- SoapReflectionImporter.cs
- DocobjHost.cs
- RemotingConfigParser.cs
- ConnectionStringEditor.cs
- ToolStripItemTextRenderEventArgs.cs
- SafeTokenHandle.cs
- RichTextBox.cs
- ByteFacetDescriptionElement.cs
- ViewUtilities.cs
- SmiEventSink_Default.cs
- RelationshipNavigation.cs
- QilParameter.cs
- HighContrastHelper.cs
- FormViewInsertEventArgs.cs