StatusEnumMyStatus=(StatusEnum)Enum.Parse(typeof(StatusEnum),"Active",true);
I tend to simplify this with:
publicstatic T ParseEnum<T>(string value ){return(T)Enum.Parse(typeof( T ), value,true);}
Then I can do:
StatusEnumMyStatus=EnumUtil.ParseEnum<StatusEnum>("Active");