C# removing an event handler

前端 未结 2 1342
野趣味
野趣味 2020-12-18 17:57

I\'ve been doing this for a while, but I haven\'t noticed that I\'ve been using a new each time I remove an event handler. Am I supposed to be creating a new ob

2条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-18 18:51

    The second version is equivalent to the first; it just uses a shorter syntax. This was implemented in C# 2.0

提交回复
热议问题