MySql.Data.MySqlClient.MySqlConnectionStringBuilder.ParseEnum C# (CSharp) Method

ParseEnum() private method

private ParseEnum ( Type t, string requestedValue, string key ) : object
t Type
requestedValue string
key string
return object
        private object ParseEnum(Type t, string requestedValue, string key)
        {
            try
            {
                return Enum.Parse(t, requestedValue, true);
            }
            catch (ArgumentException)
            {
                throw new InvalidOperationException(String.Format(
                    Resources.InvalidConnectionStringValue, requestedValue, key));
            }
        }