linux-packaging-mono/mcs/tests/test-anon-18.cs

20 lines
305 B
C#
Raw Normal View History

using System;
delegate void A ();
class DelegateTest {
public static void Main (string[] argv)
{
Console.WriteLine ("Test");
foreach (string arg in argv) {
Console.WriteLine ("OUT: {0}", arg);
A a = delegate {
Console.WriteLine ("arg: {0}", arg);
};
a ();
}
}
}