Suppose i have this Enum:
namespace BusinessRule
{
    public enum SalaryCriteria : int
        {
            [EnumDisplayName(DisplayName = "Per Month")]
            Per_Month = 1,
            [EnumDisplayName(DisplayName = "Per Year")]
            Per_Year = 2,
            [EnumDisplayName(DisplayName = "Per Week")]
            Per_Week = 3
        }
}
I have its name in a string variable like :
string EnumAtt = "SalaryCriteria";
i am trying to check if this Enum is defined by this name, and if defined i want to get its instance.i have tried like this, but type is returning null:
string EnumAtt = "SalaryCriteria";
Type myType1 = Type.GetType(EnumAtt);
i have also tried this:
string EnumAtt = "BusinessRule.SalaryCriteria";
Type myType1 = Type.GetType(EnumAtt);
any idea how i can achieve this.
