14 lines
167 B
C#
14 lines
167 B
C#
|
delegate void FooHandler ();
|
||
|
|
||
|
class X
|
||
|
{
|
||
|
public static void foo ()
|
||
|
{ }
|
||
|
|
||
|
public static void Main ()
|
||
|
{
|
||
|
object o = new FooHandler (foo);
|
||
|
((FooHandler) o) ();
|
||
|
}
|
||
|
}
|