Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ObjRef.cs
- ByteFacetDescriptionElement.cs
- PropertyManager.cs
- RequestUriProcessor.cs
- ValidationErrorInfo.cs
- XmlSchemaSimpleTypeList.cs
- ProcessModelInfo.cs
- LogicalTreeHelper.cs
- ToolboxItemCollection.cs
- DBParameter.cs
- xmlsaver.cs
- CacheEntry.cs
- pingexception.cs
- XmlnsDefinitionAttribute.cs
- CqlGenerator.cs
- CryptographicAttribute.cs
- SoapCodeExporter.cs
- SatelliteContractVersionAttribute.cs
- ControlValuePropertyAttribute.cs
- AutomationElementIdentifiers.cs
- CodeDOMProvider.cs
- CalloutQueueItem.cs
- SecurityException.cs
- Config.cs
- TemplateXamlTreeBuilder.cs
- SingleConverter.cs
- SoapAttributeOverrides.cs
- RadioButtonStandardAdapter.cs
- isolationinterop.cs
- DataControlLinkButton.cs
- UnsafeCollabNativeMethods.cs
- SpeechSeg.cs
- FixedSOMLineRanges.cs
- ZipIOExtraField.cs
- SignatureToken.cs
- XmlSchemaType.cs
- RecordBuilder.cs
- RuntimeIdentifierPropertyAttribute.cs
- VersionValidator.cs
- DynamicMetaObject.cs
- UIAgentAsyncParams.cs
- CodeParameterDeclarationExpression.cs
- FieldAccessException.cs
- UrlRoutingHandler.cs
- PolyBezierSegment.cs
- ImageBrush.cs
- SharedUtils.cs
- TypeSource.cs
- QueuePathEditor.cs
- DataSourceSelectArguments.cs
- TypeSource.cs
- InternalConfigHost.cs
- ListViewAutomationPeer.cs
- SatelliteContractVersionAttribute.cs
- ValidationErrorCollection.cs
- DocumentOrderQuery.cs
- AnnotationResourceCollection.cs
- RowParagraph.cs
- XmlSchemaObjectTable.cs
- EntityDataSourceQueryBuilder.cs
- MouseCaptureWithinProperty.cs
- SqlBulkCopyColumnMapping.cs
- ListDataHelper.cs
- UnsafeNativeMethodsPenimc.cs
- SizeAnimationBase.cs
- AnnotationElement.cs
- CancelEventArgs.cs
- RecommendedAsConfigurableAttribute.cs
- XmlFormatReaderGenerator.cs
- SynchronizingStream.cs
- WebPartCatalogAddVerb.cs
- PermissionRequestEvidence.cs
- DirectionalLight.cs
- ExtendedPropertyDescriptor.cs
- LineBreak.cs
- util.cs
- LoginView.cs
- LabelAutomationPeer.cs
- DesignerMetadata.cs
- NetTcpBindingElement.cs
- UpdateException.cs
- SecurityContextSecurityTokenAuthenticator.cs
- XmlMemberMapping.cs
- FieldAccessException.cs
- SqlBooleanMismatchVisitor.cs
- ValueHandle.cs
- XmlSchemaComplexContentRestriction.cs
- CrossSiteScriptingValidation.cs
- MessageBox.cs
- SqlServer2KCompatibilityCheck.cs
- CallbackValidator.cs
- Axis.cs
- NumericExpr.cs
- StoragePropertyMapping.cs
- ListInitExpression.cs
- MembershipSection.cs
- ConversionHelper.cs
- UnmanagedBitmapWrapper.cs
- XamlToRtfParser.cs
- StubHelpers.cs