C# Delegate Instantiation vs. Just Passing the Method Reference

后端 未结 3 689
夕颜
夕颜 2020-12-02 00:00

I have a simple question: what\'s the advantage of instantiating a C# delegate as opposed to just passing the function reference? What I mean is:

Why do:

         


        
3条回答
  •  生来不讨喜
    2020-12-02 00:29

    That's equivalent. Good introductory article on the subject: C# Delegates, Anonymous Methods, and Lambda Expressions – O My!

提交回复
热议问题