Hacker News new | ask | show | jobs
by oozcitak 5723 days ago
I don't think that would work. How would the compiler know the type of x and the return type of the lambda expression?
1 comments

It won't. In just about all cases, C# doesn't do backtracking to infer types. See Eric Lippert's posts: http://blogs.msdn.com/b/ericlippert/archive/2010/10/04/no-ba...