protected internal XmlCharacterData (string data, XmlDocument doc)
: base (doc)
{
+ if (data == null)
+ data = String.Empty;
+
this.data = data;
}
set { data = value; }
}
- [MonoTODO]
public override string InnerText {
- get {
- throw new NotImplementedException ();
- }
+ get { return data; }
- set {
- throw new NotImplementedException ();
- }
+ set { data = value; }
}
- public int Length {
- get {
- return data != null ? data.Length : 0;
- }
+ public virtual int Length {
+ get { return data != null ? data.Length : 0; }
}
public override string Value {
get { return data; }
- set { data = value; }
+ set {
+ if (IsReadOnly)
+ throw new ArgumentException ("Node is read-only.");
+
+ data = value;
+ }
}
#endregion
throw new NotImplementedException();
}
- [MonoTODO]
- public virtual string Substring(int offset, int count)
+ public virtual string Substring (int offset, int count)
{
- throw new NotImplementedException();
+ return data.Substring (offset, count);
}
#endregion