What does this mean in C# or LINQ? - ( () => )

c#, linq

Solution

`() =>` indicates a lambda expression that takes no arguments.

Problem

I was going through Jeffrey Palermo's book and came across this syntax. ``` private void InitializeRepositories() { Func<IVisitorRepository> builder = () => new VisitorRepository(); VisitorRepositoryFactory.RepositoryBuilder = builder; } ``` What does it mean?

Original source

Related problems