Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
3
Reply
explanation about source code of combobox
abdelwaheb ammar
Jan 19 2018 8:40 AM
178
I find this source code that allows me Binding ComboBox directly to enum values but I do not understand this instruction
public
IList<UserType> UserTypes
{
get
{
// Will result in a list like {"Tester", "Engineer"}
return
Enum.GetValues(
typeof
(UserType)).Cast<UserType>().ToList<UserType>();
}
}
public
UserType UserType
{
get
;
set
;
}
knowing that this code I find it in this site :http://www.ridgesolutions.ie/index.php/2014/11/05/wpf-xaml-binding-combobox-directly-to-enum-values/
Reply
Upload Source Code
Select only zip and rar file.
Post
Reset
Answers (
3
)
Insert a value on two conditions in a excel using epplus
Newbie need help understanding multi parameter lambda?