[英]How to declare event property in interface?
In C# 7.0, is it possible to declare an event property in an in a interface
, something like:在 C# 7.0 中,是否可以在
interface
声明事件属性,例如:
delegate void Del();
interface I
{
event Del E { add; remove; }
}
Similar to properties?类似于属性?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.