开发者

What is this C# syntax called?

In C#, you can do something开发者_JAVA技巧 like this:

SomeFunction (() => {
    DoSomething ();
});

What is the name of this syntax (the () => ...)?


This is called Lambda Expression


It's a parameterless lambda expression.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜