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

cs1533.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 188c02dd3337399481d05e27bd44e931a396f555 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// cs1533 : Invoke cannot be called directly on a delegate
// Line : 11

public class TestClass
{
	delegate void OneDelegate (int i);

	static void Main()
	{
		OneDelegate d = new OneDelegate (TestMethod);
		d.Invoke (1);
	}
	public static void TestMethod (int i)
	{
	}
}