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
- TraceUtility.cs
- DockPatternIdentifiers.cs
- Bitmap.cs
- ObjectSpanRewriter.cs
- FileCodeGroup.cs
- ProgressBarAutomationPeer.cs
- FollowerQueueCreator.cs
- ManagementEventWatcher.cs
- Graphics.cs
- ContainerUtilities.cs
- SamlAction.cs
- DefinitionBase.cs
- QilTypeChecker.cs
- Setter.cs
- BaseParser.cs
- GenericUriParser.cs
- ReadOnlyNameValueCollection.cs
- PostBackTrigger.cs
- OleDbWrapper.cs
- DllNotFoundException.cs
- ParseElement.cs
- CategoryGridEntry.cs
- SqlProcedureAttribute.cs
- xmlsaver.cs
- DataControlReferenceCollection.cs
- EventDrivenDesigner.cs
- CultureMapper.cs
- Normalization.cs
- ConnectionStringSettings.cs
- QueryRewriter.cs
- DataGridViewColumn.cs
- Vector3DKeyFrameCollection.cs
- SliderAutomationPeer.cs
- Application.cs
- HexParser.cs
- Label.cs
- ListItemCollection.cs
- SettingsPropertyWrongTypeException.cs
- BehaviorEditorPart.cs
- _SSPISessionCache.cs
- PageContentCollection.cs
- EmptyStringExpandableObjectConverter.cs
- Propagator.Evaluator.cs
- StylusCollection.cs
- CompatibleIComparer.cs
- WindowsListViewGroupSubsetLink.cs
- FormViewUpdatedEventArgs.cs
- ParagraphVisual.cs
- DbgCompiler.cs
- StrongNameKeyPair.cs
- DataGridCellItemAutomationPeer.cs
- BaseParagraph.cs
- ObjectDataSourceEventArgs.cs
- TextAnchor.cs
- RegexCode.cs
- Evidence.cs
- SelectionService.cs
- CompilationSection.cs
- XpsManager.cs
- TriggerActionCollection.cs
- SettingsBindableAttribute.cs
- MaterializeFromAtom.cs
- TextEditorMouse.cs
- XmlSchemaImporter.cs
- AssemblyAssociatedContentFileAttribute.cs
- MenuAdapter.cs
- AuthStoreRoleProvider.cs
- XpsFixedDocumentSequenceReaderWriter.cs
- ModelEditingScope.cs
- TypeDescriptionProviderAttribute.cs
- HopperCache.cs
- RemoteWebConfigurationHostServer.cs
- TypeDescriptionProviderAttribute.cs
- AdornedElementPlaceholder.cs
- SystemResourceHost.cs
- ObjectListCommand.cs
- RequestResizeEvent.cs
- COM2ExtendedUITypeEditor.cs
- SerialStream.cs
- ContextStaticAttribute.cs
- XmlBinaryWriterSession.cs
- DrawingContextDrawingContextWalker.cs
- WebControlsSection.cs
- ControlParameter.cs
- GradientBrush.cs
- SoapAttributeAttribute.cs
- MonikerHelper.cs
- NotFiniteNumberException.cs
- RevocationPoint.cs
- RSAProtectedConfigurationProvider.cs
- GridPattern.cs
- TargetException.cs
- Tablet.cs
- StickyNote.cs
- Brushes.cs
- HMACMD5.cs
- ConstantProjectedSlot.cs
- OperationContextScope.cs
- SmtpCommands.cs
- FixedSOMFixedBlock.cs