static CFProxyType CFProxyTypeToEnum (IntPtr type)
{
if (type == kCFProxyTypeAutoConfigurationJavaScript)
return CFProxyType.AutoConfigurationJavaScript;
if (type == kCFProxyTypeAutoConfigurationURL)
return CFProxyType.AutoConfigurationUrl;
if (type == kCFProxyTypeFTP)
return CFProxyType.FTP;
if (type == kCFProxyTypeHTTP)
return CFProxyType.HTTP;
if (type == kCFProxyTypeHTTPS)
return CFProxyType.HTTPS;
if (type == kCFProxyTypeSOCKS)
return CFProxyType.SOCKS;
return CFProxyType.None;
}