Alex Rivera | Logout

What does "() =>" mean in C#?

Asked 2009-03-10T14:04:22.140
16

Came across the following line in the Composite Application Guidelines.

I know the => is a lambda but what does the () mean?

What are some other examples of this?

What is it called so I can search for it?

this.regionViewRegistry.RegisterViewWithRegion(RegionNames.SelectionRegion
        , () => this.container.Resolve<EmployeesListPresenter>().View);
Edit
Report

1 Answer

22

It's a lambda expression that takes 0 arguments

http://msdn.microsoft.com/en-us/library/bb397687.aspx

answered 2009-03-10T14:06:36.003

Your Answer