I\'m trying to build generic function that get from user string and try to parse it to Enum valuse like this:
private Enum getEnumStringEnumType(Type i_EnumT
String Extension Method
public TEnum ToEnum(this string value, TEnum defaultValue){ if (string.IsNullOrEmpty(value))return defaultValue; return Enum.Parse(typeof(TEnum), value, true);}