加event与不加event

来源:互联网 发布:淘宝对话生成 编辑:程序博客网 时间:2024/04/28 08:57

1)只能用+= -= 不能用=,安全 ,事件不会被一下子摧毁

2)event只能在该类执行,其他类无法发布这个事件