接口可以有事件吗? [英] Could Interface can have Events?

查看:86
本文介绍了接口可以有事件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

接口可以有事件吗?

推荐答案

是.

http://stackoverflow.com/questions/4711524/what-does-event- inside-the-interface-mean [ ^ ]
Yes.

http://stackoverflow.com/questions/4711524/what-does-event-inside-the-interface-mean[^]


是的.看到这里:
http://msdn.microsoft.com/en-us/library/ak9w5846%28v = vs.80%29.aspx [ ^ ]
或在这里:
http://geekswithblogs.net/technetbytes/archive/2008/04/07/121110.aspx [^ ]
Yes they can. See here:
http://msdn.microsoft.com/en-us/library/ak9w5846%28v=vs.80%29.aspx[^]
or here:
http://geekswithblogs.net/technetbytes/archive/2008/04/07/121110.aspx[^]


接口可以声明一个事件.
有关更多信息,请参见以下链接:
http://msdn.microsoft.com/en-us/library/ak9w5846 (v = vs.80).aspx [ http://stackoverflow.com/questions/465318/how-to-实现事件通过接口在C中 [ ^ ]
http://www.blackwasp.co.uk/CSharpInterfaceEvents.aspx [
An interface can declare an event.
See below links for more information:
http://msdn.microsoft.com/en-us/library/ak9w5846(v=vs.80).aspx[^]
http://stackoverflow.com/questions/465318/how-to-implement-events-through-interface-in-c[^]
http://www.blackwasp.co.uk/CSharpInterfaceEvents.aspx[^]


这篇关于接口可以有事件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆