C#泛型委托实例

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/number1killer/article/details/82936424

本文部分注释部分来源于书籍和官网网摘。

 委托可以定义它自己的类型参数。

 Generic delegates are especially useful in defining events based on the typical design pattern because the sender argument can be strongly typed and no longer has to be cast to and from Object.

 根据典型设计模式定义事件时,泛型委托特别有用,因为发送方参数可以为强类型,不再需要向对象映射。

猜你喜欢

转载自blog.csdn.net/number1killer/article/details/82936424