a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
21 lines
345 B
C#
21 lines
345 B
C#
using System;
|
|
|
|
class Delegable {
|
|
public event EventHandler MyDelegate;
|
|
}
|
|
|
|
class DelegateTest {
|
|
public static void Main (string[] argv)
|
|
{
|
|
Console.WriteLine ("Test");
|
|
|
|
Delegable db = new Delegable ();
|
|
db.MyDelegate += delegate (object o, EventArgs args) {
|
|
Console.WriteLine ("{0}", argv);
|
|
Console.WriteLine ("{0}", db);
|
|
};
|
|
}
|
|
}
|
|
|
|
|