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
- CodeFieldReferenceExpression.cs
- Stack.cs
- HtmlInputControl.cs
- TranslateTransform.cs
- InternalBase.cs
- Stack.cs
- ScrollBarAutomationPeer.cs
- GetPageCompletedEventArgs.cs
- JpegBitmapEncoder.cs
- LogicalChannelCollection.cs
- XmlC14NWriter.cs
- sitestring.cs
- BackoffTimeoutHelper.cs
- BitmapFrameDecode.cs
- DataServiceProcessingPipelineEventArgs.cs
- EntityDataSourceStatementEditor.cs
- ReaderWriterLock.cs
- CodePageUtils.cs
- PropertyRecord.cs
- ThemeInfoAttribute.cs
- GenericUriParser.cs
- DataViewListener.cs
- Trigger.cs
- SystemParameters.cs
- OpacityConverter.cs
- ScaleTransform.cs
- Input.cs
- XmlSchemaComplexContentExtension.cs
- BaseTreeIterator.cs
- FormViewModeEventArgs.cs
- DecimalFormatter.cs
- HighlightVisual.cs
- XMLSchema.cs
- BitmapPalettes.cs
- MoveSizeWinEventHandler.cs
- EncoderFallback.cs
- HostProtectionPermission.cs
- EpmContentSerializer.cs
- UInt32.cs
- Rect.cs
- PackageRelationship.cs
- IconBitmapDecoder.cs
- TraceContextRecord.cs
- CompilerCollection.cs
- ParserStack.cs
- PassportIdentity.cs
- UrlPath.cs
- ResourcesBuildProvider.cs
- Blend.cs
- LocalizableAttribute.cs
- ExceptionRoutedEventArgs.cs
- CapabilitiesState.cs
- PathNode.cs
- BackgroundWorker.cs
- RegistrySecurity.cs
- HtmlControlPersistable.cs
- Decimal.cs
- Query.cs
- MenuItemBindingCollection.cs
- NameTable.cs
- TextServicesProperty.cs
- Stack.cs
- DtdParser.cs
- SizeFConverter.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- SecurityElement.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- WinFormsUtils.cs
- InputScope.cs
- XmlSchemaSimpleTypeRestriction.cs
- CardSpaceSelector.cs
- XmlNodeChangedEventManager.cs
- BrowserDefinition.cs
- ConfigViewGenerator.cs
- EntityStoreSchemaGenerator.cs
- SecurityElement.cs
- ProviderException.cs
- IntranetCredentialPolicy.cs
- EmbeddedMailObject.cs
- PathFigure.cs
- CancelEventArgs.cs
- TypedDataSetSchemaImporterExtensionFx35.cs
- WebPartEditorOkVerb.cs
- ISAPIRuntime.cs
- ProcessThread.cs
- SingleKeyFrameCollection.cs
- EtwTrace.cs
- TemplatedWizardStep.cs
- SecUtil.cs
- WindowsEditBoxRange.cs
- XPathNodeHelper.cs
- Shape.cs
- TagMapCollection.cs
- MarkedHighlightComponent.cs
- ConfigViewGenerator.cs
- ListViewSelectEventArgs.cs
- SafeHGlobalHandleCritical.cs
- ConstantSlot.cs
- WindowHideOrCloseTracker.cs
- StrokeRenderer.cs