标签:+= new class eve data return 委托 oid event
public class A
{
//定义委托
public delegate void ReturnHandler(string s);
//定义事件
public event ReturnHandler returnData;
}
public class B
{
A a = new A();
a.returnData += sk;
public void sk()
{
}
}
标签:+= new class eve data return 委托 oid event
原文地址:https://www.cnblogs.com/ChenhaonanFamily/p/13298293.html