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

cs0123-2.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 120e8feb866edbc743aee9e97feb648599413dc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// CS0123: The method `MainClass.Delegate()' parameters do not match delegate `IA TestDelegate(bool)' parameters
// Line: 17

delegate IA TestDelegate(bool b);

interface IA {}

public class MainClass : IA
{
	static MainClass Delegate()
	{
		return null;
	}

	public static void Main()
	{
		TestDelegate delegateInstance = new TestDelegate (Delegate);
	}
}