Merge pull request #4327 from vkargov/vk-abcremedy
[mono.git] / mcs / tests / gtest-linq-12.cs
index b1afaae6db5e429c9f2e2b4582cdc0817db6c6d1..a4c96ad74b4e7fb6d3d10dc46c43e86ccaa5b599 100644 (file)
@@ -1,51 +1,51 @@
-using System;\r
-using System.Linq;\r
-\r
-class NestedQuery\r
-{\r
-       public void XX ()\r
-       {\r
-               var enumerable = new string[] { "aba", "bbb", "bab", "aaa" }.\r
-                       Select((values) => new { values = values, length = values.Length }).\r
-                               Select((ti0) => ti0.values.Select ((type) => new { type = type, x = 9 }).Where((ti1) => (ti0.length == 3)).\r
-                       Select((ti1) => ti1.type));\r
-       }\r
-       \r
-       public static int Main ()\r
-       {\r
-               var e = from values in new [] { "aba", "bbb", "bab", "aaa" }\r
-                       where values.Length > 0\r
-                       select from type in values\r
-                               where type == 'a'\r
-                               select type;\r
-               \r
-               int counter = 0;\r
-               foreach (var v in e)\r
-                       foreach (var vv in v) {\r
-                               ++counter;\r
-                               Console.WriteLine (vv);\r
-                       }\r
-                       \r
-               \r
-               if (counter != 6)\r
-                       return 1;\r
-                       \r
-               e = from values in new [] { "aba", "bbb", "bab", "aaa" }\r
-                       let length = values.Length\r
-                       select from type in values\r
-                               let x = 9\r
-                               where length == 3\r
-                               select type;\r
-               counter = 0;\r
-               foreach (var v in e)\r
-                       foreach (var vv in v) {\r
-                               ++counter;\r
-                               Console.WriteLine (vv);\r
-                       }\r
-                       \r
-               if (counter != 12)\r
-                       return 2;\r
-                       \r
-               return 0;\r
-       }\r
-}\r
+using System;
+using System.Linq;
+
+class NestedQuery
+{
+       public void XX ()
+       {
+               var enumerable = new string[] { "aba", "bbb", "bab", "aaa" }.
+                       Select((values) => new { values = values, length = values.Length }).
+                               Select((ti0) => ti0.values.Select ((type) => new { type = type, x = 9 }).Where((ti1) => (ti0.length == 3)).
+                       Select((ti1) => ti1.type));
+       }
+       
+       public static int Main ()
+       {
+               var e = from values in new [] { "aba", "bbb", "bab", "aaa" }
+                       where values.Length > 0
+                       select from type in values
+                               where type == 'a'
+                               select type;
+               
+               int counter = 0;
+               foreach (var v in e)
+                       foreach (var vv in v) {
+                               ++counter;
+                               Console.WriteLine (vv);
+                       }
+                       
+               
+               if (counter != 6)
+                       return 1;
+                       
+               e = from values in new [] { "aba", "bbb", "bab", "aaa" }
+                       let length = values.Length
+                       select from type in values
+                               let x = 9
+                               where length == 3
+                               select type;
+               counter = 0;
+               foreach (var v in e)
+                       foreach (var vv in v) {
+                               ++counter;
+                               Console.WriteLine (vv);
+                       }
+                       
+               if (counter != 12)
+                       return 2;
+                       
+               return 0;
+       }
+}