private static ResultType ParseResultType(string text) { return (ResultType)Enum.Parse(typeof(ResultType), text); }