private static IEnumerable<Proxy> ParseProxies(IEnumerable<string> proxies)
{
IEnumerable<Proxy> proxyParsed = proxies.Select(t =>
{
try
{
Proxy proxy = new Proxy(t);
return proxy;
}
catch (UriFormatException)
{
// parsing exception
return null;
}
}).Where(t => t != null);
return proxyParsed;
}
}