Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- LoaderAllocator.cs
- EntityAdapter.cs
- RequestCacheManager.cs
- ListBoxItemWrapperAutomationPeer.cs
- Fx.cs
- CultureInfoConverter.cs
- ProcessManager.cs
- OdbcCommand.cs
- SchemaImporterExtensionElementCollection.cs
- SymDocumentType.cs
- DbProviderFactories.cs
- XmlObjectSerializerReadContextComplex.cs
- Application.cs
- MethodImplAttribute.cs
- GenericEnumConverter.cs
- ScriptReference.cs
- TextDecorationUnitValidation.cs
- DynamicPhysicalDiscoSearcher.cs
- DbProviderFactories.cs
- PinnedBufferMemoryStream.cs
- SortedList.cs
- IISUnsafeMethods.cs
- BamlBinaryReader.cs
- SqlDataSourceFilteringEventArgs.cs
- GridViewDeletedEventArgs.cs
- XmlSchemaComplexContent.cs
- AttachInfo.cs
- InternalBase.cs
- XmlDocumentType.cs
- FrugalMap.cs
- ActivityCollectionMarkupSerializer.cs
- AssociationType.cs
- TrustLevelCollection.cs
- InvalidCastException.cs
- EncodingNLS.cs
- Point3DCollectionConverter.cs
- HuffCodec.cs
- StylusSystemGestureEventArgs.cs
- TableLayoutStyleCollection.cs
- cryptoapiTransform.cs
- xml.cs
- WebBrowserDocumentCompletedEventHandler.cs
- PermissionSet.cs
- Int32AnimationUsingKeyFrames.cs
- OciLobLocator.cs
- AuthenticationConfig.cs
- DesignerLabelAdapter.cs
- RowToFieldTransformer.cs
- NameValueCollection.cs
- X509Utils.cs
- WebPartDisplayModeEventArgs.cs
- DeviceFilterDictionary.cs
- ResourceAttributes.cs
- CompressionTracing.cs
- DBParameter.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- TriggerBase.cs
- CompiledRegexRunnerFactory.cs
- SynchronizedDispatch.cs
- DataSourceXmlSerializationAttribute.cs
- PackageProperties.cs
- RightsManagementErrorHandler.cs
- XmlAttributeAttribute.cs
- BitmapEffectInput.cs
- OpCopier.cs
- TraceSwitch.cs
- CallSite.cs
- DataTableMappingCollection.cs
- RootBrowserWindowProxy.cs
- EventMap.cs
- VisualCollection.cs
- HttpCacheParams.cs
- MenuTracker.cs
- QuaternionAnimation.cs
- FlowLayoutSettings.cs
- TemplatedWizardStep.cs
- _ConnectOverlappedAsyncResult.cs
- Visual3D.cs
- SRDisplayNameAttribute.cs
- SqlSelectStatement.cs
- ScriptReference.cs
- Model3DGroup.cs
- SafeEventLogWriteHandle.cs
- DoubleStorage.cs
- XmlSerializerNamespaces.cs
- FirstMatchCodeGroup.cs
- EntityClassGenerator.cs
- SessionSymmetricTransportSecurityProtocolFactory.cs
- UnsafeNativeMethodsMilCoreApi.cs
- PropertyNames.cs
- ResourceReferenceKeyNotFoundException.cs
- NotCondition.cs
- TreeViewImageGenerator.cs
- ServicePerformanceCounters.cs
- OleStrCAMarshaler.cs
- LayoutTableCell.cs
- GenericAuthenticationEventArgs.cs
- SpellerInterop.cs
- HttpCapabilitiesBase.cs
- ClientApiGenerator.cs