XmlLinkedNode.cs 1.2 KB

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