2002-12-01 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
[mono.git] / mcs / class / System.XML / System.Xml / XmlEntityReference.cs
index c542f5632e48165d8cc8bc81fafb3a1752dad231..c6f94cf1bb61e420c3e39a36f25c7c378bd4f401 100644 (file)
@@ -24,7 +24,7 @@ namespace System.Xml
                // Properties\r
                [MonoTODO]\r
                public override string BaseURI {\r
-                       get { return null; }\r
+                       get { throw new NotImplementedException (); }\r
                }\r
 \r
                public override bool IsReadOnly {\r
@@ -45,8 +45,9 @@ namespace System.Xml
 \r
                public override string Value {\r
                        get { return null; } // always return null here.\r
-                       [MonoTODO]\r
-                       set { throw new NotImplementedException (); }\r
+                       set {\r
+                               throw new XmlException ("entity reference cannot be set value.");\r
+                       }\r
                }\r
 \r
                // Methods\r
@@ -59,16 +60,16 @@ namespace System.Xml
                        return new XmlEntityReference ("", OwnerDocument);\r
                }\r
 \r
-               [MonoTODO]\r
                public override void WriteContentTo (XmlWriter w)\r
                {\r
-                       throw new NotImplementedException();\r
+                       // nothing to write for this object.\r
                }\r
 \r
-               [MonoTODO]\r
                public override void WriteTo (XmlWriter w)\r
                {\r
-                       throw new NotImplementedException();\r
+                       w.WriteRaw("&");\r
+                       w.WriteName(Name);\r
+                       w.WriteRaw(";");\r
                }\r
        }\r
 }\r