Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / test-anon-127.cs
1 using System;
2 using System.Collections.Generic;
3
4 public abstract class BaseDataObjectFactory
5 {
6         protected static T GetBusinessQueryObjectFromReader<T> ()
7                 where T : BusinessQueryObject, new ()
8         {
9                 T t = new T ();
10                 return t;
11         }
12
13         public abstract T [] GetQueryObjects<T> (string query)
14                 where T : BusinessQueryObject, new ();
15 }
16
17 public class BusinessQueryObject
18 {
19 }
20
21 public class MySqlDataObjectFactory : BaseDataObjectFactory
22 {
23         public override T [] GetQueryObjects<T> (string query)
24         {
25                 List<T> list = new List<T> ();
26                 list.Add (GetBusinessQueryObjectFromReader<T> ());
27                 ExecuteReader(5,
28                         delegate() {
29                                 list.Add(GetBusinessQueryObjectFromReader<T>());
30                         });
31                 return list.ToArray ();
32         }
33
34         static void ExecuteReader (int a, PerformActionWithReader action)
35         {
36         }
37
38         delegate void PerformActionWithReader ();
39 }
40
41 public class C
42 {
43         public static void Main ()
44         {
45         }
46 }
47