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
- SemaphoreSecurity.cs
- PointLight.cs
- NameValueSectionHandler.cs
- DelegateHelpers.Generated.cs
- CultureSpecificStringDictionary.cs
- FastEncoder.cs
- RepeaterItemCollection.cs
- DiscoveryVersion.cs
- VectorCollectionConverter.cs
- OptionalColumn.cs
- InputBinding.cs
- DrawItemEvent.cs
- RestClientProxyHandler.cs
- XPathEmptyIterator.cs
- ServicePoint.cs
- AnnotationDocumentPaginator.cs
- GenerateTemporaryAssemblyTask.cs
- HealthMonitoringSection.cs
- VisualTarget.cs
- MultiDataTrigger.cs
- WindowsAuthenticationModule.cs
- TypeReference.cs
- RightNameExpirationInfoPair.cs
- PropertyToken.cs
- SqlBinder.cs
- FormatException.cs
- TdsParameterSetter.cs
- ToolStripDropDownClosingEventArgs.cs
- NetworkInformationPermission.cs
- PasswordRecovery.cs
- TreeNodeCollection.cs
- CurrencyManager.cs
- XmlSerializableWriter.cs
- SchemaConstraints.cs
- AccessDataSourceView.cs
- QilScopedVisitor.cs
- FileDialog_Vista_Interop.cs
- OracleInternalConnection.cs
- Registry.cs
- LineGeometry.cs
- ReadOnlyKeyedCollection.cs
- MouseCaptureWithinProperty.cs
- ByteAnimation.cs
- ProxySimple.cs
- EventItfInfo.cs
- MenuItemCollection.cs
- CodeArrayIndexerExpression.cs
- ApplicationDirectoryMembershipCondition.cs
- UIElement.cs
- StructuralCache.cs
- PeerNodeAddress.cs
- SchemaImporterExtension.cs
- QueryStringParameter.cs
- CredentialCache.cs
- ExtensionSimplifierMarkupObject.cs
- EmissiveMaterial.cs
- DataObjectEventArgs.cs
- UserInitiatedNavigationPermission.cs
- VirtualizingStackPanel.cs
- SimpleApplicationHost.cs
- QueryContext.cs
- IisTraceListener.cs
- ToolStripContentPanelDesigner.cs
- NullableIntAverageAggregationOperator.cs
- XmlComplianceUtil.cs
- Point3DAnimationUsingKeyFrames.cs
- CodeTypeReferenceCollection.cs
- RuleConditionDialog.Designer.cs
- Encoding.cs
- XmlCharCheckingReader.cs
- SerializationInfoEnumerator.cs
- UpdateCompiler.cs
- CodeDirectionExpression.cs
- SyndicationLink.cs
- NonParentingControl.cs
- HttpUnhandledOperationInvoker.cs
- XhtmlMobileTextWriter.cs
- Sql8ConformanceChecker.cs
- SafeTimerHandle.cs
- Table.cs
- DataDocumentXPathNavigator.cs
- ExecutionProperties.cs
- GlobalizationSection.cs
- BinaryParser.cs
- SettingsPropertyWrongTypeException.cs
- XsltConvert.cs
- AudioSignalProblemOccurredEventArgs.cs
- ArrayList.cs
- ReadOnlyCollectionBuilder.cs
- ImageResources.Designer.cs
- RequestQueryProcessor.cs
- WebDescriptionAttribute.cs
- Debug.cs
- LifetimeServices.cs
- ThreadStaticAttribute.cs
- MatrixTransform.cs
- RowToFieldTransformer.cs
- HtmlInputRadioButton.cs
- ZoneMembershipCondition.cs
- MouseBinding.cs