2010-02-20 Geoff Norton <gnorton@novell.com>
authorGeoff Norton <grompf@sublimeintervention.com>
Sat, 20 Feb 2010 20:27:04 +0000 (20:27 -0000)
committerGeoff Norton <grompf@sublimeintervention.com>
Sat, 20 Feb 2010 20:27:04 +0000 (20:27 -0000)
        * XmlInputStream.cs: Disable this codepath on monotouch.  Fixes
        #562155

svn path=/trunk/mcs/; revision=152143

mcs/class/System.XML/System.Xml/ChangeLog
mcs/class/System.XML/System.Xml/XmlInputStream.cs

index 9569df8a7ec8bebafa13aefd147607cce2f2288e..844607641ce7c5bdd66c8f079fc92b2316dea787 100644 (file)
@@ -1,3 +1,8 @@
+2010-02-20  Geoff Norton  <gnorton@novell.com>
+
+       * XmlInputStream.cs: Disable this codepath on monotouch.  Fixes
+       #562155
+
 2010-02-12  Miguel de Icaza  <miguel@novell.com>
 
        * XmlWriterSettings.cs: Expose NamespaceHandling in NET 4.0 
index 7ada6eb919db4fb3cce5ac1fd35c1904c2162467..75a3f806b9859f2ddca3fd52096fbf6173e19c2a 100644 (file)
@@ -361,7 +361,7 @@ namespace System.Xml
 
                static string GetStringFromBytes (byte [] bytes, int index, int count)
                {
-#if NET_2_1
+#if NET_2_1 && !MONOTOUCH
                        char [] chars = new char [count];
                        for (int i = index; i < count; i++)
                                chars [i] = (char) bytes [i];