Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gtest-426.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 133bd33445368a823323de4a512086b64e869fb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;

namespace OverloadTest
{
	public interface MyInterface<T>
	{
		void Invoke (T target);
	}

	public class MyClass<T>
	{

		public bool Method (MyInterface<T> obj)
		{
			return Method (obj.Invoke);
		}

		public bool Method (Action<T> myAction)
		{
			return true;
		}
	}

	class C
	{
		public static void Main ()
		{
		}
	}
}