Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / Dom / XmlLinkedNode.cs / 1305376 / 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
- FileDialogCustomPlace.cs
- RightsManagementResourceHelper.cs
- XmlCharCheckingReader.cs
- FixedHighlight.cs
- Oid.cs
- DataGridTable.cs
- SQLBinary.cs
- IndexOutOfRangeException.cs
- CollectionBuilder.cs
- InvalidCommandTreeException.cs
- SerializationEventsCache.cs
- DataRowExtensions.cs
- TabletDevice.cs
- MissingMethodException.cs
- ExceptionRoutedEventArgs.cs
- SafeNativeMethods.cs
- DynamicArgumentDialog.cs
- MessagePropertyVariants.cs
- UIAgentInitializationException.cs
- ListViewGroupCollectionEditor.cs
- TdsParserHelperClasses.cs
- Border.cs
- BaseParser.cs
- TemplatePropertyEntry.cs
- ExpressionEditorSheet.cs
- SystemIPv4InterfaceProperties.cs
- RuleInfoComparer.cs
- MenuCommands.cs
- versioninfo.cs
- Collection.cs
- RectangleGeometry.cs
- NullReferenceException.cs
- DesignerCalendarAdapter.cs
- OleDbWrapper.cs
- XamlToRtfWriter.cs
- CollectionsUtil.cs
- CellTreeNodeVisitors.cs
- MediaPlayerState.cs
- While.cs
- SystemInformation.cs
- relpropertyhelper.cs
- ReadOnlyDictionary.cs
- HashHelper.cs
- XsdDataContractImporter.cs
- SqlAliaser.cs
- StreamWithDictionary.cs
- Win32KeyboardDevice.cs
- ThreadExceptionDialog.cs
- PtsContext.cs
- CapabilitiesAssignment.cs
- ResolveMatchesMessage11.cs
- SystemWebSectionGroup.cs
- EventLogQuery.cs
- externdll.cs
- UnconditionalPolicy.cs
- ApplicationSecurityInfo.cs
- JsonWriter.cs
- Event.cs
- WebExceptionStatus.cs
- XmlDownloadManager.cs
- SystemUdpStatistics.cs
- RouteItem.cs
- PolicyException.cs
- Color.cs
- HtmlDocument.cs
- FileDialog_Vista.cs
- EventManager.cs
- RSAPKCS1SignatureDeformatter.cs
- PhysicalAddress.cs
- ControlDesigner.cs
- ReflectTypeDescriptionProvider.cs
- InstanceLockQueryResult.cs
- SignedXmlDebugLog.cs
- Image.cs
- ExpressionConverter.cs
- MultiSelector.cs
- ConstantExpression.cs
- ParentQuery.cs
- SqlTypeConverter.cs
- SettingsSavedEventArgs.cs
- URLMembershipCondition.cs
- ResourceContainer.cs
- DelayDesigner.cs
- SessionMode.cs
- ConfigurationManagerInternalFactory.cs
- SystemMulticastIPAddressInformation.cs
- PrimitiveXmlSerializers.cs
- EllipseGeometry.cs
- CalendarDateRange.cs
- ListViewItemSelectionChangedEvent.cs
- AnnotationResource.cs
- WindowsTitleBar.cs
- Oci.cs
- PersonalizationEntry.cs
- StreamSecurityUpgradeInitiatorBase.cs
- DataGridParentRows.cs
- ScriptingProfileServiceSection.cs
- StylusPointPropertyInfoDefaults.cs
- SqlComparer.cs
- RSAPKCS1SignatureDeformatter.cs