XmlCharacterData.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. //
  2. // System.Xml.XmlCharacterData.cs
  3. //
  4. // Author:
  5. // Jason Diamond <[email protected]>
  6. //
  7. // (C) 2002 Jason Diamond http://injektilo.org/
  8. //
  9. using System;
  10. namespace System.Xml
  11. {
  12. public abstract class XmlCharacterData : XmlLinkedNode
  13. {
  14. private string data;
  15. #region Constructor
  16. protected internal XmlCharacterData (string data, XmlDocument doc)
  17. : base (doc)
  18. {
  19. this.data = data;
  20. }
  21. #endregion
  22. #region Properties
  23. public virtual string Data {
  24. get { return data; }
  25. set { data = value; }
  26. }
  27. [MonoTODO]
  28. public override string InnerText {
  29. get {
  30. throw new NotImplementedException ();
  31. }
  32. set {
  33. throw new NotImplementedException ();
  34. }
  35. }
  36. public int Length {
  37. get {
  38. return data != null ? data.Length : 0;
  39. }
  40. }
  41. public override string Value {
  42. get { return data; }
  43. set { data = value; }
  44. }
  45. #endregion
  46. #region Methods
  47. [MonoTODO]
  48. public virtual void AppendData (string strData)
  49. {
  50. throw new NotImplementedException ();
  51. }
  52. [MonoTODO]
  53. public virtual void DeleteData (int offset, int count)
  54. {
  55. throw new NotImplementedException ();
  56. }
  57. [MonoTODO]
  58. public virtual void InsertData (int offset, string strData)
  59. {
  60. throw new NotImplementedException ();
  61. }
  62. [MonoTODO]
  63. public virtual void ReplaceData (int offset, int count, string strData)
  64. {
  65. throw new NotImplementedException();
  66. }
  67. [MonoTODO]
  68. public virtual string Substring(int offset, int count)
  69. {
  70. throw new NotImplementedException();
  71. }
  72. #endregion
  73. }
  74. }