public class PizzaIngredient
{
public enum Country
{
SouthKorea,
United_Kingdom,
united_States
}
}
Asked
Active
Viewed 231 times
1

Guru Stron
- 102,774
- 10
- 95
- 132

Sydney_dev
- 1,448
- 2
- 17
- 24
-
`UnitedKingdom` .. Probably – Rahul Jul 24 '20 at 19:56
-
The problem with that is space between, United_Kingdom should be United Kingdom on the front end – Sydney_dev Jul 24 '20 at 19:59
1 Answers
0
remove the under score from the definition :
public enum Country
{
SouthKorea,
UnitedKingdom,
UnitedStates
}
or if that is not possible add descriptors to the enum , example here : Can my enums have friendly names?

Shachaf.Gortler
- 5,655
- 14
- 43
- 71