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
- SafeNativeMethodsOther.cs
- ObjectSet.cs
- EditableTreeList.cs
- DiscoveryDocumentSerializer.cs
- HttpCachePolicy.cs
- WMIGenerator.cs
- BulletedList.cs
- PropertyNames.cs
- XmlSerializerObjectSerializer.cs
- XmlIterators.cs
- SqlFacetAttribute.cs
- DataGridState.cs
- EnvironmentPermission.cs
- IISUnsafeMethods.cs
- ThumbAutomationPeer.cs
- ConnectionPointCookie.cs
- CrossContextChannel.cs
- RadioButtonList.cs
- EntityDataSource.cs
- RadioButtonBaseAdapter.cs
- SqlPersonalizationProvider.cs
- LinkButton.cs
- SqlGenerator.cs
- ErrorStyle.cs
- HostingEnvironmentSection.cs
- DataGridParentRows.cs
- OdbcUtils.cs
- SqlDuplicator.cs
- ApplicationContext.cs
- CodeGotoStatement.cs
- ClientScriptManagerWrapper.cs
- FamilyMap.cs
- HelpInfo.cs
- ProcessModelSection.cs
- DefaultValidator.cs
- SqlUtil.cs
- Marshal.cs
- CopyOfAction.cs
- LinqMaximalSubtreeNominator.cs
- X509Certificate2.cs
- TypeSystem.cs
- PackagePart.cs
- EditingScopeUndoUnit.cs
- NavigationProperty.cs
- EntityDataSourceEntityTypeFilterItem.cs
- TimelineGroup.cs
- InternalConfigSettingsFactory.cs
- IfAction.cs
- UpdateTracker.cs
- basemetadatamappingvisitor.cs
- ChtmlTextWriter.cs
- Control.cs
- Rotation3DAnimationBase.cs
- Visitors.cs
- RemoteWebConfigurationHostServer.cs
- FormsAuthenticationUserCollection.cs
- ObjectItemAttributeAssemblyLoader.cs
- _SecureChannel.cs
- DataGridViewElement.cs
- IItemProperties.cs
- EventLogger.cs
- HwndStylusInputProvider.cs
- SizeAnimationClockResource.cs
- SByteConverter.cs
- TypeUsageBuilder.cs
- NativeMethods.cs
- Single.cs
- ClientScriptManager.cs
- ByteConverter.cs
- ZipIOLocalFileDataDescriptor.cs
- _ListenerRequestStream.cs
- JoinCqlBlock.cs
- SignedInfo.cs
- SystemTcpConnection.cs
- FilterableAttribute.cs
- SQLInt16Storage.cs
- XslUrlEditor.cs
- CodeParameterDeclarationExpressionCollection.cs
- ScriptControl.cs
- WebPartConnectionsConnectVerb.cs
- FileSystemInfo.cs
- KeySpline.cs
- FreeFormDragDropManager.cs
- CopyAttributesAction.cs
- ToolBarButtonClickEvent.cs
- DragDrop.cs
- CanonicalFormWriter.cs
- ReadWriteSpinLock.cs
- UrlPath.cs
- GenericFlowSwitchHelper.cs
- SrgsRule.cs
- dataSvcMapFileLoader.cs
- DataGridViewAutoSizeModeEventArgs.cs
- CookielessHelper.cs
- CodeCompileUnit.cs
- ExpandSegmentCollection.cs
- GatewayDefinition.cs
- OrderPreservingPipeliningSpoolingTask.cs
- ScaleTransform3D.cs
- WorkflowPersistenceService.cs