28 lines
381 B
C#
28 lines
381 B
C#
|
using System;
|
||
|
|
||
|
namespace TestBug
|
||
|
{
|
||
|
public class BugClass<T>
|
||
|
{
|
||
|
public event EventHandler Evt { add { } remove { } }
|
||
|
|
||
|
public void Bug ()
|
||
|
{
|
||
|
Evt += Handler;
|
||
|
}
|
||
|
|
||
|
public static void Handler (object sender, EventArgs e)
|
||
|
{
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class MainClass
|
||
|
{
|
||
|
public static void Main ()
|
||
|
{
|
||
|
BugClass<int> bc = new BugClass<int> ();
|
||
|
bc.Evt += BugClass<int>.Handler;
|
||
|
}
|
||
|
}
|
||
|
}
|