a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
17 lines
438 B
C#
17 lines
438 B
C#
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);
|
|
}
|
|
}
|
|
}
|