KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I failed to convert List<string> to List<myEnumType> . I don't know why? string Val = it.Current.Value.ToString(); // works well here List<myEnumType> ValList = new List<myEnumType>(Val.Split(',')); // compile failed Of cause myEnumType type defined as string enum type as this, public enum myEnumType { strVal_1, strVal_2, strVal_3, } Is there anything wrong? Appreciated for you replies.
Tags (comma-separated)
Save Edits
Cancel