I find this source code that allows me Binding ComboBox directly to enum values but I do not understand this instruction
- public IList
UserTypes - {
- get
- {
- // Will result in a list like {"Tester", "Engineer"}
- return Enum.GetValues(typeof(UserType)).Cast
().ToList (); - }
- }
- public UserType UserType
- {
- get;
- set;
- }


Nilesh ShahRank #42 · 34.2K reputationPosted Jan 19, 2018, 6:47 AM EST
Mukesh NayakRank #1,172 · 1.5K reputationPosted Jan 19, 2018, 10:09 PM EST
abdelwaheb ammarRank #4,571 · 337 reputationPosted Jan 19, 2018, 12:05 PM EST