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
- DataGridToolTip.cs
- ReadOnlyObservableCollection.cs
- DataTableReaderListener.cs
- cookieexception.cs
- GenericXmlSecurityToken.cs
- BaseTemplateParser.cs
- DataGrid.cs
- XPathSingletonIterator.cs
- Utils.cs
- DrawTreeNodeEventArgs.cs
- PasswordBox.cs
- CookielessHelper.cs
- wmiprovider.cs
- PropertyChangeTracker.cs
- HtmlMobileTextWriter.cs
- XmlSchemaCollection.cs
- OleDbParameterCollection.cs
- MatcherBuilder.cs
- Win32KeyboardDevice.cs
- XmlSignatureProperties.cs
- OracleColumn.cs
- SystemFonts.cs
- DesignerCommandAdapter.cs
- Boolean.cs
- FontDialog.cs
- FragmentNavigationEventArgs.cs
- EntitySqlQueryCacheEntry.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- PolicyDesigner.cs
- ErrorTableItemStyle.cs
- StrokeRenderer.cs
- TextRangeProviderWrapper.cs
- Send.cs
- HTTPNotFoundHandler.cs
- DBConnectionString.cs
- BrowserPolicyValidator.cs
- DataView.cs
- SystemException.cs
- PrivilegedConfigurationManager.cs
- ResolvedKeyFrameEntry.cs
- EntityDesignerUtils.cs
- Style.cs
- FileSystemInfo.cs
- DesignerAutoFormatStyle.cs
- LinqDataSourceDeleteEventArgs.cs
- XmlCDATASection.cs
- GeneratedContractType.cs
- CqlBlock.cs
- UpdateTracker.cs
- SourceFilter.cs
- QueryStatement.cs
- SyntaxCheck.cs
- FactorySettingsElement.cs
- SqlVersion.cs
- ProofTokenCryptoHandle.cs
- DependentList.cs
- _NtlmClient.cs
- _emptywebproxy.cs
- DataSourceView.cs
- ReadOnlyMetadataCollection.cs
- StatusBarAutomationPeer.cs
- HttpContext.cs
- ExpressionList.cs
- ContactManager.cs
- EventTrigger.cs
- SystemUnicastIPAddressInformation.cs
- DayRenderEvent.cs
- HttpStreamMessageEncoderFactory.cs
- HostingEnvironmentSection.cs
- StructuredTypeEmitter.cs
- FlowNode.cs
- Table.cs
- UpdateTracker.cs
- SerialPort.cs
- StrongNameIdentityPermission.cs
- StringUtil.cs
- MulticastNotSupportedException.cs
- HMACSHA1.cs
- WebPartHelpVerb.cs
- DesignerDataStoredProcedure.cs
- XmlAttributeAttribute.cs
- ReferencedAssemblyResolver.cs
- CompilationLock.cs
- FocusWithinProperty.cs
- FixedSOMPageElement.cs
- CompositeScriptReference.cs
- XmlSchemaAll.cs
- CodeTypeMember.cs
- XamlPointCollectionSerializer.cs
- AnnotationResourceCollection.cs
- SamlAuthenticationClaimResource.cs
- DeadCharTextComposition.cs
- DataRecordInternal.cs
- Rect.cs
- CommandEventArgs.cs
- ListDictionaryInternal.cs
- XamlClipboardData.cs
- HostProtectionPermission.cs
- InstanceLockLostException.cs
- PerformanceCountersElement.cs