dotnet / dotnet/efcore

Translate LINQ SwitchExpression

Open
#31,308 0 comments 13 reactions 0 assignees View on GitHub
area-query customer-reported
Dominant language
C#
Stars
14.8k
Forks
3.4k
PR merge metrics
PR metrics pending

Description

The compiler currently doesn't create SwitchExpression nodes. However, users may still use [Expression.Switch](https://learn.microsoft.com/en-us/dotnet/api/system.linq.expressions.expression.switch))) to create these, and these can be useful in various dynamic scenarios (e.g. see #31307).

Also, hopefully one day the compiler would also support the newer C# switch expressions, generating these nodes for them.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.