Difference between wiring events using “new EventHandler” and not using new EventHandler"?

后端 未结 4 823
情书的邮戳
情书的邮戳 2021-01-18 10:06

What\'s the difference between the two?

object.ProgressChanged += new EventHandler(object_ProgressChanged)

object.ProgressCh         


        
4条回答
  •  孤街浪徒
    2021-01-18 10:58

    There is no difference between the two, they are same. In fact, the latter is just a shortcut and it will be compiled like the former.

    Riana

提交回复
热议问题