a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
23 lines
432 B
C#
23 lines
432 B
C#
public delegate void StringSender (string str);
|
|
public delegate void VoidDelegate ();
|
|
|
|
public class MainClass
|
|
{
|
|
public static void Main()
|
|
{
|
|
MainClass mc = new MainClass ();
|
|
VoidDelegate del = new VoidDelegate (delegate {
|
|
StringSender ss = delegate (string s) {
|
|
SimpleCallback(mc, s);
|
|
};
|
|
ss("Yo!");
|
|
});
|
|
del();
|
|
}
|
|
|
|
static void SimpleCallback (MainClass mc, string str)
|
|
{
|
|
System.Console.WriteLine(str);
|
|
}
|
|
}
|