2010-02-09 Chris Toshok <toshok@ximian.com>
authorChris Toshok <toshok@novell.com>
Tue, 9 Feb 2010 17:21:31 +0000 (17:21 -0000)
committerChris Toshok <toshok@novell.com>
Tue, 9 Feb 2010 17:21:31 +0000 (17:21 -0000)
* XDocument.cs: add the Load (Stream) overloads.

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

mcs/class/System.Xml.Linq/System.Xml.Linq/ChangeLog
mcs/class/System.Xml.Linq/System.Xml.Linq/XDocument.cs

index ea23a28f03adcb2f9b8a40d778376c41fc32c0bc..fbb7348d7ac3aff50d7e9076e7a80abfbe03df33 100644 (file)
@@ -1,3 +1,7 @@
+2010-02-09  Chris Toshok  <toshok@ximian.com>
+
+       * XDocument.cs: add the Load (Stream) overloads.
+
 2010-01-15  Atsushi Enomoto  <atsushi@ximian.com>
 
        * XAttribute.cs : escape whitespace chars in ToString().
index ba2a2c55142ad37a55da334f9e4efd8953aa22d2..5a035f25a54eaa3591c0886945b3206950e5d5bb 100644 (file)
@@ -101,6 +101,16 @@ namespace System.Xml.Linq
                        }
                }
 
+               public static XDocument Load (Stream stream)
+               {
+                       return Load (new StreamReader (stream), LoadOptions.None);
+               }
+
+               public static XDocument Load (Stream stream, LoadOptions options)
+               {
+                       return Load (new StreamReader (stream), options);
+               }
+
                public static XDocument Load (TextReader reader)
                {
                        return Load (reader, LoadOptions.None);