Intermediate C#
Q79 / 100

What is the difference between Func<T, TResult> and Expression<Func<T, TResult>>?

Correct! Well done.

Incorrect.

The correct answer is B) Func is a compiled delegate; Expression wraps the lambda as a data structure that can be inspected and translated (e.g., to SQL by EF Core)

B

Correct Answer

Func is a compiled delegate; Expression wraps the lambda as a data structure that can be inspected and translated (e.g., to SQL by EF Core)

Explanation

Expression<Func<User, bool>> pred = u => u.Age > 18 creates a tree. pred.Compile() gets a runnable Func. EF Core translates the tree to WHERE Age > 18 SQL.

Progress
79/100