2
0

XmlLinkedNode.cs 760 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using System;
  2. namespace System.Xml
  3. {
  4. public abstract class XmlLinkedNode : XmlNode
  5. {
  6. #region Fields
  7. XmlLinkedNode nextSibling;
  8. #endregion
  9. #region Constructors
  10. protected internal XmlLinkedNode(XmlDocument doc) : base(doc) { }
  11. #endregion
  12. #region Properties
  13. public override XmlNode NextSibling
  14. {
  15. get {
  16. if (Object.ReferenceEquals(nextSibling, ParentNode.LastLinkedChild.NextLinkedSibling) == false) {
  17. return nextSibling;
  18. }
  19. else {
  20. return null;
  21. }
  22. }
  23. }
  24. internal XmlLinkedNode NextLinkedSibling
  25. {
  26. get { return nextSibling; }
  27. set { nextSibling = value; }
  28. }
  29. [MonoTODO]
  30. public override XmlNode PreviousSibling
  31. {
  32. get {
  33. throw new NotImplementedException ();
  34. }
  35. }
  36. #endregion
  37. }
  38. }