Is it possible to have a switch in a lambda expression? If not, why? Resharper displays it as an error.
Hmm, I see no reason why this shouldn't work. Just be careful with the syntax you use
param => { // Nearly any code! } delegate (param) { // Nearly any code! } param => JustASingleExpression (No switches)