Convert a string to an enum
User Enum.Parse is your friend
enum StatusEnum {Active,Inactive}
StatusEnum MyStatus = (StatusEnum) Enum.Parse( typeof(StatusEnum), "Active");
Comments
Post a Comment