Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- InputEventArgs.cs
- SmiEventSink_DeferedProcessing.cs
- EmbeddedMailObjectsCollection.cs
- _ScatterGatherBuffers.cs
- ResumeStoryboard.cs
- FormViewDesigner.cs
- CodeVariableReferenceExpression.cs
- DecimalMinMaxAggregationOperator.cs
- AssertSection.cs
- TypeDescriptor.cs
- OdbcEnvironment.cs
- UnsafeNativeMethods.cs
- IFormattable.cs
- VerificationException.cs
- ExpressionBuilderContext.cs
- EnumBuilder.cs
- ForeignKeyConstraint.cs
- ResourcePart.cs
- ObjectDataSourceMethodEditor.cs
- RemotingSurrogateSelector.cs
- MexHttpsBindingCollectionElement.cs
- HostExecutionContextManager.cs
- ChangePassword.cs
- XmlDataSource.cs
- ObjectStateFormatter.cs
- BookmarkScope.cs
- ObjectPropertyMapping.cs
- WebPartCatalogAddVerb.cs
- SharedRuntimeState.cs
- TreeNode.cs
- AssemblyAttributesGoHere.cs
- DataGridItemAutomationPeer.cs
- RelatedPropertyManager.cs
- SerializationObjectManager.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- SystemTcpConnection.cs
- ServiceMemoryGates.cs
- WebCodeGenerator.cs
- RequestCachePolicyConverter.cs
- HealthMonitoringSectionHelper.cs
- ServiceObjectContainer.cs
- CharStorage.cs
- NativeBuffer.cs
- FileDetails.cs
- LocalizationComments.cs
- CustomLineCap.cs
- WebPartDisplayModeCollection.cs
- CSharpCodeProvider.cs
- CreateParams.cs
- InternalMappingException.cs
- SynchronizationContext.cs
- ListViewInsertedEventArgs.cs
- MemberHolder.cs
- ListComponentEditorPage.cs
- DataServiceExpressionVisitor.cs
- LocalizableAttribute.cs
- MenuItemCollection.cs
- FileAuthorizationModule.cs
- OleDbRowUpdatedEvent.cs
- QuaternionAnimationUsingKeyFrames.cs
- ScriptingAuthenticationServiceSection.cs
- EventDescriptorCollection.cs
- StreamWriter.cs
- StatusCommandUI.cs
- MsmqInputChannelBase.cs
- KerberosTicketHashIdentifierClause.cs
- ValidationEventArgs.cs
- TransformCollection.cs
- ToolStripItemGlyph.cs
- DefaultParameterValueAttribute.cs
- InputLangChangeEvent.cs
- ButtonFlatAdapter.cs
- Transform.cs
- ToolStripSeparatorRenderEventArgs.cs
- SiteMapNode.cs
- LoadGrammarCompletedEventArgs.cs
- XmlRawWriter.cs
- ExpressionConverter.cs
- StatusBar.cs
- LocalTransaction.cs
- HiddenFieldPageStatePersister.cs
- DateTimeConverter.cs
- BinaryNegotiation.cs
- WebPartCollection.cs
- HelloOperation11AsyncResult.cs
- StdRegProviderWrapper.cs
- GZipStream.cs
- TextEditorLists.cs
- BasicViewGenerator.cs
- BitmapEffectGeneralTransform.cs
- SerializerProvider.cs
- Token.cs
- RIPEMD160Managed.cs
- SelectorAutomationPeer.cs
- Int64AnimationBase.cs
- versioninfo.cs
- EmptyWorkItem.cs
- Point3D.cs
- DataGridViewColumnCollection.cs
- HttpBrowserCapabilitiesWrapper.cs