public static string string2domain(string Url) { if (!Url.Contains("://")) Url = "http://" + Url; return new Uri(Url).Host; }