Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan Mak <duncan@mono-cvs.ximian.com>2002-03-26 18:03:40 +0300
committerDuncan Mak <duncan@mono-cvs.ximian.com>2002-03-26 18:03:40 +0300
commit46c432f451f5526badc95bd28367c3a1ab063751 (patch)
treeab7ef3f6a60b3c130758a18f885df1a70d1246c5 /mcs/class/System.XML/System.Xml/XmlCharacterData.cs
parentc58206b2f71a81627a179419d8e4ec0a76b326e7 (diff)
2002-03-26 Duncan Mak <duncan@ximian.com>
* XmlCharacterData.cs (InnerText): Implemented. Funny that the docs say it is the "The concatenated values of the node and all the children of the node.". I wrote some test programs and couldn't get any of the derived nodes to AppendChild. For now, InnerText == Data == Value. * XmlDeclaration.cs (XmlDeclaration): Fixed the constructor parameter signature. svn path=/trunk/mcs/; revision=3358
Diffstat (limited to 'mcs/class/System.XML/System.Xml/XmlCharacterData.cs')
-rw-r--r--mcs/class/System.XML/System.Xml/XmlCharacterData.cs18
1 files changed, 5 insertions, 13 deletions
diff --git a/mcs/class/System.XML/System.Xml/XmlCharacterData.cs b/mcs/class/System.XML/System.Xml/XmlCharacterData.cs
index 12cfa99181c..ee97aff170f 100644
--- a/mcs/class/System.XML/System.Xml/XmlCharacterData.cs
+++ b/mcs/class/System.XML/System.Xml/XmlCharacterData.cs
@@ -33,21 +33,14 @@ namespace System.Xml
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;
- }
+ get { return data != null ? data.Length : 0; }
}
public override string Value {
@@ -84,10 +77,9 @@ namespace System.Xml
throw new NotImplementedException();
}
- [MonoTODO]
- public virtual string Substring(int offset, int count)
+ public virtual string Substring (int offset, int count)
{
- throw new NotImplementedException();
+ return new data.SubString (offset, count);
}
#endregion