how to cast string enum ?
i have the code below , it gives me error when i try to assign string to levelEnum, where levelEnum is an Enumeration..
foreach (CustomProperty prop in requirementTemplate.AttributesCustomList)
{
if (prop.Name == property)
{
return (CRF_DB.CRF_Requirement.LevelEnum) (prop.Value.ToString());
}
}
Is there a way to put select Enum item by assigning value to it ?
hope it is clear enough
prop.Value?