我有这样的代码在基类重写继承泛型方法
protected virtual bool HasAnyStuff<TObject>(TObject obj) where TObject:class
{
return false;
}
在子类中,我重写
protected override bool HasAnyStuff<Customer>(Customer obj)
{
//some stuff
if Customer.sth etc
return false;
}
我收到此错误
“”'类型参数声明必须是不是类型的标识符'''
这是什么我在这里做错了?