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;
- }

Mukesh NayakPosted Jan 20, 2018, 3:09 AM
abdelwaheb ammarPosted Jan 19, 2018, 5:05 PM
Nilesh ShahPosted Jan 19, 2018, 11:47 AM