Delegate vs. delegate keyword

前端 未结 6 2059
长情又很酷
长情又很酷 2020-12-13 03:51

If you like to create custom delegates you would use the delegate keyword in lowercase.

What can you do with the actual Delegate Class? Wh

6条回答
  •  执笔经年
    2020-12-13 04:40

    The advantage of the Delegate class is that it is the base class for all delegate types in .Net. Having a method which takes an instance of this class allows you to operate generically over all manner of delegates. This is the reason operations like ISynchronizedInvoke.Invoke use this as a parameter.

提交回复
热议问题