| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- // System.Xml.XmlLinkedNode.cs
- //
- // Author: Daniel Weber ([email protected])
- //
- // Implementation of abstract Xml.XmlLinkedNode class
- using System;
- namespace System.Xml
- {
- public abstract class XmlLinkedNode : XmlNode
- {
- private XmlNode _nextSibling;
- private XmlNode _previousSibling;
- // ============ Properties ============================================
- //=====================================================================
- /// <summary>
- /// Get the node immediately following this node
- /// </summary>
- public override XmlNode NextSibling
- {
- get
- {
- return _nextSibling;
- }
- }
- /// <summary>
- /// Get the node immediately previous to this node
- /// </summary>
- public override XmlNode PreviousSibling
- {
- get
- {
- return _previousSibling;
- }
- }
- // Internal accessor methods
- //===========================================================================
- internal void setPreviousNode ( XmlNode previous )
- {
- _previousSibling = previous;
- }
- internal void setNextSibling ( XmlNode next )
- {
- _nextSibling = next;
- }
- // Constructors
- //===========================================================================
- internal XmlLinkedNode( XmlDocument aOwner ) : base(aOwner)
- {
- }
- }
- }
|