继承体系: 代理-->System.MulticastDelegate-->System.Delegate
作用:
delegate int GetLengthDel(string input)
GetLengthDel del=GetLengthMethod
等于GetLengthDel del =new GetLengthDel(GetLengthMethod);
del.Invoke("input string");//
del("input string");//和上面一行是等效的 ,而且都是同步调用
//异步调用,事实上netcore已经禁止直接写这样的异步调用了;所以对这种过时的写法这里就不再讲解了
//del.BeginInvoke
原文:https://www.cnblogs.com/francisXu/p/13647913.html