CSharp - Anonymous method

/*

Author: Jiangong SUN

*/

In versions of C# previous to 2.0, the only way to declare a delegate was to use named methods. C# 2.0 introduces anonymous methods.
Creating anonymous methods is essentially a way to pass a code block as a delegate parameter.


CSharp - Anonymous method_第1张图片


reference:

http://stackoverflow.com/questions/6008097/what-are-anonymous-methods-in-c

你可能感兴趣的:(method,anonymous,csharp)