110,539
社区成员
发帖
与我相关
我的任务
分享
public class A
{
public static string test()
{
return null;
}
}
public class B: A
{
}
var x = B.test();
HttpWebRequest.Create
是从哪里来的?! var p = WebRequest.Create("http://localhost");
Console.WriteLine(p.GetType()); //System.Net.HttpWebRequest
根本就不需要强制类型转换!