Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumC#expression treesSingle-choice MCQ

Why does assigning this lambda to an Expression<T> fail to compile, while assigning it to the equivalent Func<T> succeeds?

Expression<Func<int, int>> e = x => { return x + 1; };