这是我的班级层次结构
BaseEntityCRUDGridViewModel : BaseGenericViewModel
{ }
public class BaseGenericTests<ST> : SilverlightTest
where ST : BaseGenericViewModel
我该怎么做以下
public class BaseEntityCRUDGridTests<T> : BaseGenericTests<T>
where T : BaseEntityCRUDGridViewModel
它给了我以下错误
Error 5 The type 'T' cannot be used as type parameter 'ST' in
the generic type or method 'Commons.UnitTests.BaseGenericTests<ST>'.
There is no implicit reference conversion from 'T'
to 'ViewModels.BaseGenericViewModel'.
路径\BaseNavigationTests.cs 23 27 Commons