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

test-351.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2d2463ee8313c324ee60deca31dd894fd62ccec6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
namespace Test {
	delegate void Foo (string x, params object [] args);
	class Testee {
		static void Bar (string x, params object [] args) {}
		public static void Main () {
			Foo bar = new Foo (Bar);
			bar ("Hello");
			bar ("Hello", "world");
			bar ("Hello", new string [] { "world" });
			bar ("Hello", "world", "!!!");
			bar ("i = ", 5);
			bar ("x' = ", new object [] {"Foo", 5, 3.6 });
			bar ("x'' = ", "Foo", 5, 3.6);
		}
	}
}