Expose new ReadLines extension methods in the mobile-based profiles
authorSebastien Pouliot <sebastien@xamarin.com>
Sat, 23 Jul 2011 15:03:44 +0000 (11:03 -0400)
committerSebastien Pouliot <sebastien@xamarin.com>
Sat, 23 Jul 2011 15:03:44 +0000 (11:03 -0400)
mcs/class/corlib/System.IO/File.cs

index d9335146477f86cd3707547ab71117d659296275..0165d33c551dd47753cd80b64a0df70f96201f07 100644 (file)
@@ -609,7 +609,7 @@ namespace System.IO
                        throw new NotSupportedException (Locale.GetText ("File encryption isn't supported on any file system."));
                }
 
-#if MOONLIGHT || NET_4_0
+#if MOONLIGHT || NET_4_0 || MOBILE
                public static IEnumerable<string> ReadLines (string path)
                {
                        return ReadLines (File.OpenText (path));