public ActionResult Customer(string fullNameSpace)
{
var genType = fullNameSpace.ToGenericType(); //how can I do this?
var clList = _adminService.GetCustomerList<genType>(23);
return PartialView(clList);
}
public IEnumerable<CustomerVM> GetCustomerList<S>(int clientId) where S : IEntityVMSortOrder{
...
}
在不更改GetCustomerList
函数的情况下,如何从传递的字符串参数中产生genType
?如果有可能的话。