Delegate Array in C#

前端 未结 5 1038
一整个雨季
一整个雨季 2021-02-14 18:10

I am experimenting with calling delegate functions from a delegate array. I\'ve been able to create the array of delegates, but how do I call the delegate?

publ         


        
5条回答
  •  南笙
    南笙 (楼主)
    2021-02-14 18:30

    public class MainClass
    {
        static void Main()
        {
            pd[0]();
            pd[1]();
        }
    }
    

提交回复
热议问题