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
- Int64Converter.cs
- XamlFxTrace.cs
- MultitargetUtil.cs
- PropertyEmitterBase.cs
- Environment.cs
- QilStrConcat.cs
- EncryptedData.cs
- PartitionerQueryOperator.cs
- InvalidFilterCriteriaException.cs
- StringInfo.cs
- FormViewPageEventArgs.cs
- NameSpaceExtractor.cs
- TimerExtension.cs
- CTreeGenerator.cs
- ContainerControl.cs
- ClientSettingsProvider.cs
- MaterialCollection.cs
- OptimalBreakSession.cs
- CornerRadiusConverter.cs
- BitmapData.cs
- CommentAction.cs
- StrokeSerializer.cs
- ObjectPersistData.cs
- InputChannel.cs
- ControlValuePropertyAttribute.cs
- SmiContextFactory.cs
- RowUpdatedEventArgs.cs
- ImageAttributes.cs
- MonitorWrapper.cs
- PreviewPrintController.cs
- CompModSwitches.cs
- WorkflowLayouts.cs
- CustomAttributeFormatException.cs
- TypeLoadException.cs
- ExtractedStateEntry.cs
- DbProviderManifest.cs
- CDSCollectionETWBCLProvider.cs
- DataContractSerializer.cs
- MouseEventArgs.cs
- SafeLibraryHandle.cs
- IteratorDescriptor.cs
- SByte.cs
- DateTimeFormatInfoScanner.cs
- CssClassPropertyAttribute.cs
- HwndHostAutomationPeer.cs
- QilNode.cs
- DefaultCommandConverter.cs
- AnnotationAdorner.cs
- EntityContainerRelationshipSet.cs
- DesignRelationCollection.cs
- KeyGesture.cs
- ListViewTableCell.cs
- BamlReader.cs
- Color.cs
- ResourcePart.cs
- InvalidCastException.cs
- DrawingGroup.cs
- GeneratedView.cs
- SettingsSection.cs
- Delay.cs
- WindowsRebar.cs
- WebPartDisplayMode.cs
- RegexNode.cs
- ProfilePropertyNameValidator.cs
- Convert.cs
- SqlDuplicator.cs
- UserPersonalizationStateInfo.cs
- SendingRequestEventArgs.cs
- SafeLibraryHandle.cs
- TemplateBindingExpressionConverter.cs
- OleDbTransaction.cs
- TextServicesCompartment.cs
- WebControlsSection.cs
- DataGridViewColumnTypePicker.cs
- DecimalSumAggregationOperator.cs
- SafePointer.cs
- NetworkStream.cs
- Style.cs
- DPCustomTypeDescriptor.cs
- XmlNotation.cs
- WebPartZoneBaseDesigner.cs
- HwndHost.cs
- ButtonField.cs
- XmlDomTextWriter.cs
- sqlnorm.cs
- CanonicalFontFamilyReference.cs
- VisualTreeFlattener.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- Rotation3DAnimationBase.cs
- GeneratedCodeAttribute.cs
- CodeCatchClause.cs
- RequestCache.cs
- _NetRes.cs
- InstanceDataCollectionCollection.cs
- DataBoundControlHelper.cs
- XPathConvert.cs
- TextUtf8RawTextWriter.cs
- TypeUnloadedException.cs
- KeyedHashAlgorithm.cs
- ExtenderControl.cs