a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
31 lines
301 B
C#
31 lines
301 B
C#
using System;
|
|
|
|
public delegate void D (object o);
|
|
|
|
public class E<T>
|
|
{
|
|
public class I
|
|
{
|
|
public event D E;
|
|
}
|
|
|
|
public static void Test ()
|
|
{
|
|
I i = new I ();
|
|
i.E += new D (EH);
|
|
}
|
|
|
|
static void EH (object sender)
|
|
{
|
|
}
|
|
}
|
|
|
|
public class M
|
|
{
|
|
public static void Main ()
|
|
{
|
|
E<int>.Test ();
|
|
}
|
|
}
|
|
|