如下代码:using System.Collections.Generic;
public class a
{
//a类可以使用List类型了
}public class b:a
{
//b类虽然继承了a类,但是因为没有using System.Collections.Generic,所以不能使用List类型
}请问怎么样在b类中不引用using System.Collections.Generic就可以使用List类型啊,因为他的父类已经引用了的
public class a
{
//a类可以使用List类型了
}public class b:a
{
//b类虽然继承了a类,但是因为没有using System.Collections.Generic,所以不能使用List类型
}请问怎么样在b类中不引用using System.Collections.Generic就可以使用List类型啊,因为他的父类已经引用了的
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货