Convert object to enum C#
Posted
by Shawn Mclean
on Stack Overflow
See other posts from Stack Overflow
or by Shawn Mclean
Published on 2010-05-24T07:21:35Z
Indexed on
2010/05/24
7:31 UTC
Read the original article
Hit count: 222
I have binded a list of enum to a combobox. Now I want to get the SelectedItem
return the enum, which currently returns it as type object
. How do I convert this object to my enum?
My framework is silverlight on windows-phone-7
© Stack Overflow or respective owner