private string[] ConvertValue(IQueryStringConverter converter, object value)
 {
     if (!converter.CanConvert(value.GetType()))
     {
         throw new InvalidOperationException(
                   $"Cannot convert type {value.GetType().FullName} using {converter.GetType().FullName}.");
     }
     return(converter.Convert(value));
 }
 private string ConvertValue(IQueryStringConverter converter, object value)
 {
     if (!converter.CanConvert(value.GetType()))
     {
         throw new InvalidOperationException(string.Format(CultureInfo.InvariantCulture, "Cannot convert type {0} using {1}.",
                                                           value.GetType().FullName, converter.GetType().FullName));
     }
     return(converter.Convert(value));
 }