标签:
string url = "https://www.baidu.com/";
Uri u = new Uri(url);
//MessageBox.Show(u.GetType().GetProperties()[0].ToString());
foreach (System.Reflection.PropertyInfo p in u.GetType().GetProperties())
{
textBox1.Text += p.Name + ":" + p.GetValue(u, null) + "\r\n";
}
标签:
原文地址:http://www.cnblogs.com/67laobaigan/p/4907736.html