Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EventRoute.cs
- WebPartsSection.cs
- MaterialGroup.cs
- OleCmdHelper.cs
- Event.cs
- RectangleGeometry.cs
- ComplexLine.cs
- ToolBar.cs
- SecureEnvironment.cs
- BufferModesCollection.cs
- Brush.cs
- StylusPlugInCollection.cs
- WsatConfiguration.cs
- TextProperties.cs
- ServiceTimeoutsBehavior.cs
- Tokenizer.cs
- PageAsyncTask.cs
- MulticastOption.cs
- RenderDataDrawingContext.cs
- XmlSubtreeReader.cs
- WebPartActionVerb.cs
- System.Data_BID.cs
- HttpContext.cs
- FillErrorEventArgs.cs
- WCFModelStrings.Designer.cs
- BinaryFormatterSinks.cs
- URLIdentityPermission.cs
- FileLogRecordHeader.cs
- Paragraph.cs
- XmlNamedNodeMap.cs
- RenderingEventArgs.cs
- GridViewPageEventArgs.cs
- ArrangedElementCollection.cs
- SemanticResultKey.cs
- DynamicDiscoveryDocument.cs
- IsolatedStorageFilePermission.cs
- RawStylusInputCustomDataList.cs
- ListMarkerLine.cs
- InputMethod.cs
- DateTimeOffset.cs
- AutoGeneratedField.cs
- KnowledgeBase.cs
- ThreadInterruptedException.cs
- IPipelineRuntime.cs
- ExclusiveCanonicalizationTransform.cs
- Odbc32.cs
- IPGlobalProperties.cs
- PageThemeBuildProvider.cs
- InvalidComObjectException.cs
- WindowsIPAddress.cs
- RecognitionResult.cs
- ExceptionUtil.cs
- XmlUrlResolver.cs
- InputProviderSite.cs
- ExpressionPrefixAttribute.cs
- WebHttpBindingCollectionElement.cs
- Event.cs
- ApplicationInfo.cs
- InvokerUtil.cs
- sortedlist.cs
- Command.cs
- HttpServerUtilityBase.cs
- EntityDataSourceState.cs
- WebPartManager.cs
- SpAudioStreamWrapper.cs
- WindowsAuthenticationEventArgs.cs
- ComboBox.cs
- ObjectFullSpanRewriter.cs
- XomlCompilerError.cs
- StringValidator.cs
- TypeDescriptionProviderAttribute.cs
- LambdaCompiler.Lambda.cs
- JsonSerializer.cs
- EntityContainerRelationshipSet.cs
- CodeParameterDeclarationExpression.cs
- LayoutDump.cs
- ScriptMethodAttribute.cs
- ScriptModule.cs
- ScrollEventArgs.cs
- DBNull.cs
- DataColumnMapping.cs
- UserControl.cs
- TextTreeUndoUnit.cs
- shaperfactoryquerycacheentry.cs
- Label.cs
- GeneralTransformGroup.cs
- ReliableSessionBindingElementImporter.cs
- SqlStatistics.cs
- SetterBaseCollection.cs
- FieldDescriptor.cs
- CodeMethodMap.cs
- WebDisplayNameAttribute.cs
- InterleavedZipPartStream.cs
- DataTable.cs
- DesignerContextDescriptor.cs
- EncodingStreamWrapper.cs
- BasicViewGenerator.cs
- TreeViewItemAutomationPeer.cs
- Content.cs
- DefaultTraceListener.cs