XmlDocument.InnerText is overriden to explicitly throw IOE in 4.0.
authorAtsushi Eno <atsushi@ximian.com>
Mon, 18 Oct 2010 12:04:02 +0000 (21:04 +0900)
committerAtsushi Eno <atsushi@ximian.com>
Mon, 18 Oct 2010 12:04:02 +0000 (21:04 +0900)
mcs/class/System.XML/System.Xml/XmlDocument.cs

index 7e2ad744a162262085a01469a91f401b10f51956..3378021cd6dfc39c2e9ddaa07fdeb86ed0dc0b24 100644 (file)
@@ -179,6 +179,12 @@ namespace System.Xml
                        get { return implementation; }
                }
 
+#if NET_4_0
+               public override string InnerText {
+                       set { throw new InvalidOperationException (); }
+               }
+#endif
+
                public override string InnerXml {
                        get {
                                return base.InnerXml;