C# - Anonymous delegate

前端 未结 7 1811
有刺的猬
有刺的猬 2021-02-07 08:00

Like Anonymous Methods ,the delegates i am declaring down using \"delegate\" keyword are anonymous delegates?

namespace Test
{
    public delegate void MyDelegat         


        
7条回答
  •  情深已故
    2021-02-07 08:22

    Yes. Anonymous delegates cannot be referred to directly by name, so using the delegate(){} syntax means they are anonymous.

提交回复
热议问题