DEV Community

Discussion on: When is it appropriate to use expression bodied methods?

Collapse
 
peledzohar profile image
Zohar Peled

Thanks! though I believe that c#7 doesn't support switch expressions - as far as I know they where introduced in c#8...

Collapse
 
saint4eva profile image
saint4eva

Yes, switch expression is a feature of C# 8. I was letting you know another scenario where it could be used - pattern matching