这在C#或LINQ中意味着什么? -(()=>) [英] What does this mean in C# or LINQ? - ( () => )
本文介绍了这在C#或LINQ中意味着什么? -(()=>)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在浏览Jeffrey Palermo的书,并遇到了这种语法.
I was going through Jeffrey Palermo's book and came across this syntax.
private void InitializeRepositories()
{
Func<IVisitorRepository> builder = () => new VisitorRepository();
VisitorRepositoryFactory.RepositoryBuilder = builder;
}
这是什么意思?
推荐答案
() =>
表示
查看全文