Advanced C#
Q65 / 100

What is the Expression<T> type?

Correct! Well done.

Incorrect.

The correct answer is B) A representation of a lambda as a data structure (expression tree) that can be analyzed, translated, or compiled at runtime

B

Correct Answer

A representation of a lambda as a data structure (expression tree) that can be analyzed, translated, or compiled at runtime

Explanation

Expression<Func<User, bool>> expr = u => u.Age > 18; creates an expression tree. EF Core translates it to SQL. Call .Compile() to get a runnable Func.

Progress
65/100