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
- TreeBuilderXamlTranslator.cs
- GAC.cs
- XslException.cs
- TypeDependencyAttribute.cs
- XmlDictionaryString.cs
- webbrowsersite.cs
- FakeModelItemImpl.cs
- M3DUtil.cs
- FontSource.cs
- SyndicationPerson.cs
- ConfigsHelper.cs
- DragDrop.cs
- ReadOnlyDictionary.cs
- assertwrapper.cs
- NetDispatcherFaultException.cs
- UnmanagedHandle.cs
- ProtocolsConfiguration.cs
- CapabilitiesState.cs
- ConsoleKeyInfo.cs
- figurelength.cs
- Selection.cs
- Positioning.cs
- HttpClientProtocol.cs
- CanExecuteRoutedEventArgs.cs
- QueryCursorEventArgs.cs
- ConfigurationLockCollection.cs
- keycontainerpermission.cs
- RectangleConverter.cs
- MachineKeySection.cs
- AnimatedTypeHelpers.cs
- _CommandStream.cs
- ByteBufferPool.cs
- XmlILStorageConverter.cs
- ResourcesChangeInfo.cs
- QilGeneratorEnv.cs
- WSHttpSecurity.cs
- EntityDataSourceDataSelectionPanel.designer.cs
- RegularExpressionValidator.cs
- DiagnosticSection.cs
- XhtmlBasicSelectionListAdapter.cs
- NotFiniteNumberException.cs
- CompileLiteralTextParser.cs
- FaultFormatter.cs
- SystemFonts.cs
- EventLogPermissionEntry.cs
- Options.cs
- ToolStripItemCollection.cs
- SiteMapNodeItemEventArgs.cs
- SetterBaseCollection.cs
- HitTestWithPointDrawingContextWalker.cs
- _NtlmClient.cs
- ListBoxItem.cs
- UnicastIPAddressInformationCollection.cs
- baseaxisquery.cs
- HtmlProps.cs
- GacUtil.cs
- MeasureItemEvent.cs
- ConstraintConverter.cs
- WpfPayload.cs
- Propagator.Evaluator.cs
- COM2IProvidePropertyBuilderHandler.cs
- PropertyChangedEventManager.cs
- PointLight.cs
- DocumentReferenceCollection.cs
- SqlReorderer.cs
- HandlerWithFactory.cs
- ScrollItemProviderWrapper.cs
- ControlSerializer.cs
- MetadataProperty.cs
- ValidatorCollection.cs
- ProfileSection.cs
- MarkupCompilePass1.cs
- FastEncoderWindow.cs
- InternalConfigSettingsFactory.cs
- DataMisalignedException.cs
- XmlTypeMapping.cs
- HttpStaticObjectsCollectionWrapper.cs
- Int32AnimationUsingKeyFrames.cs
- HyperLinkDesigner.cs
- AutoResetEvent.cs
- PenThreadWorker.cs
- ProgressiveCrcCalculatingStream.cs
- NetNamedPipeBindingCollectionElement.cs
- CustomValidator.cs
- SQLGuid.cs
- XmlEncoding.cs
- baseaxisquery.cs
- ToolStripLabel.cs
- DataObject.cs
- DataServiceRequest.cs
- StringAnimationUsingKeyFrames.cs
- IsolatedStoragePermission.cs
- PolyBezierSegment.cs
- StaticExtensionConverter.cs
- OutKeywords.cs
- ServiceMemoryGates.cs
- StyleHelper.cs
- ElementProxy.cs
- ObfuscationAttribute.cs
- XamlBrushSerializer.cs