C# - Anonymous delegate

前端 未结 7 1828
有刺的猬
有刺的猬 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:26

    Your delegate collection in the example points to a number of anonymous methods. A delegate is "just a method pointer". It doesn't matter if it points to a real method or an anonymous method.

    Please see http://msdn.microsoft.com/en-us/library/0yw3tz5k(VS.80).aspx

提交回复
热议问题