3 ms·
I don't think that would work. How would the compiler know the type of x and the return type of the lambda expression?
by oozcitak 16y 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?
- the_rara_avis 16y agoIt 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-backtracking-part-one.aspx http://blogs.msdn.com/b/ericlippert/archive/2010/10/04/no-ba...