TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
abdelwaheb ammar
1.3k
457
124.7k
explanation about source code of combobox
Jan 19 2018 8:40 AM
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
Answers (
3
)
Insert a value on two conditions in a excel using epplus
Newbie need help understanding multi parameter lambda?