为什么controller中只能使用接口类型,使用接口的实现类会报错
private MockIStudent student;
public HomeController(MockIStudent _student)
{
student = _student;
}
private MockIStudent student;
public HomeController(MockIStudent _student)
{
student = _student;
}
2020-08-12
举报