Why can't an anonymous class have a lambda property, but it can have a Func<> property?


This question already has an answer here:


Because there is no way for the compiler to know the type of () => { return 5; }; it could be a Func<int>, but it could also be any other delegate with the same signature (it could also be an expression tree). That's why you have to specify the type explicitly.

Need Your Help

Error 1053 : the service did not respond to the start or control request in a timely fashion


My Windows service is suddenly not working and start prompting the the error 1053.

image not displaying in windows 8.1 store app

c# image windows-store-apps windows-8.1

im developing windows 8.1 store app. this app like picture explorer.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.