DEV Community

Discussion on: C# switch - Which variation do you prefer?

Collapse
 
peledzohar profile image
Zohar Peled

Yes, that will force you to write all the cases into the dictionary - and it is a shortcoming of this approach. There are advantages for both approaches, just choose the most appropriate one each time...