XmlLinkedNode.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. // System.Xml.XmlLinkedNode.cs
  2. //
  3. // Author: Daniel Weber ([email protected])
  4. //
  5. // Implementation of abstract Xml.XmlLinkedNode class
  6. using System;
  7. namespace System.Xml
  8. {
  9. public abstract class XmlLinkedNode : XmlNode
  10. {
  11. private XmlNode _nextSibling;
  12. private XmlNode _previousSibling;
  13. // ============ Properties ============================================
  14. //=====================================================================
  15. /// <summary>
  16. /// Get the node immediately following this node
  17. /// </summary>
  18. public override XmlNode NextSibling
  19. {
  20. get
  21. {
  22. return _nextSibling;
  23. }
  24. }
  25. /// <summary>
  26. /// Get the node immediately previous to this node
  27. /// </summary>
  28. public override XmlNode PreviousSibling
  29. {
  30. get
  31. {
  32. return _previousSibling;
  33. }
  34. }
  35. // Internal accessor methods
  36. //===========================================================================
  37. internal void setPreviousNode ( XmlNode previous )
  38. {
  39. _previousSibling = previous;
  40. }
  41. internal void setNextSibling ( XmlNode next )
  42. {
  43. _nextSibling = next;
  44. }
  45. // Constructors
  46. //===========================================================================
  47. internal XmlLinkedNode( XmlDocument aOwner ) : base(aOwner)
  48. {
  49. }
  50. }
  51. }