How to Covert List<string> values to Enum

Jul 29 2020 1:14 AM
I try to Covert the List<> value to Enum but i'm Failed.
 
List lstDays = new List { "Monday", "Tuesday ", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" };
 
Need Enum like
 
enum lstDays
{
Monday,
Tuesday,
Wednesday,
Thursday,
Friday,
Saturday,
Sunday
}
 
Please can help?

Answers (3)