110,539
社区成员
发帖
与我相关
我的任务
分享
static void Main(string[] args)
{
A a = new A();
B b =new B();
b.a = 300;
b.b = 20;
B e = a.Clone() as B;//这里会运行错误 但是变成b.clone() as B 就会正常
System.Console.WriteLine(e.a);
}