do not check order sequence if option /order was not used
[mono.git] / mcs / tests / gtest-anontype-13.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4
5 static class Test
6 {
7         public static IEnumerable<T> Select<T> (this Array This, Func<object, T> transform)
8         {
9                 foreach (var item in This) {
10                         yield return transform (item);
11                 }
12         }
13
14         static void Main ()
15         {
16                 Type type = typeof (int);
17                 IEnumerable<string> properties = new[] { "x" };
18
19                 var checkIncludeExists = from n in properties
20                                                                  let p = type.GetProperty (n)
21                                                                  where p == null
22                                                                  select n;
23
24                 foreach (var item in checkIncludeExists) {
25                 }
26         }
27 }