[tuner] handle the case with multiple "preserve" attributes
[mono-project.git] / mcs / tests / gtest-linq-25.cs
blob8de5de1f77817b17ab1e471e334323f97bc7b8d4
1 using System;
2 using System.Linq;
4 class A
6 public string Header { get { return null; } }
9 class B
11 public string Name { get { return null; } }
14 class C
16 public static int Main ()
18 Test (delegate () {
19 var a = new A[0];
20 var b = new B[0];
22 if (a != null) {
23 var r = from c in new A[0]
24 from p in new B[0]
25 where c.Header == p.Name && p.Name == typeof (string).ToString ()
26 select new { C = c, P = p };
28 });
30 return 0;
33 static void Test (Action a)
35 a ();