This repository has been archived by the owner on Aug 31, 2021. It is now read-only.
[C#] Simplify Enums exercise #663
Labels
status/in-progress
This issue is being worked on
track/csharp
type/improve-exercise
Improve an existing exercise
The Enums Concept Exercise requires parsing a
string
into a user-defined enum. The idiomatic way to do that is throughEnum.Parse
, which makes thegenerics
a prerequisites. As enums are a very core data type, we feel that thegenerics
prerequisite is a bit harsh, and that should be moved to the Advanced Enums Concept Exercise.One benefit of this, is that enums can be used in other “simpler” exercise, without having the
generics
prerequisite. Another benefit would be that we can introduce theswitch
statement in the Enums Concept Exercise, as it is perfect for use together with enums.In summary, the following changes should be made:
generics
won't be a prerequisite anymore.switch
statement should be added to theintroduction.md
document).The text was updated successfully, but these errors were encountered: