Implementing of class with <T>
I want to implement like this:
namespace PIMP.Web.TestForum.Models
{
public class ThreadModel : PagedList<T>
{
but I am getting ErrorMessage:
The type or namespace na开发者_开发知识库me 'T' could not be found (are you missing a using directive or an assembly reference?)
What should I do to avoid it?
namespace PIMP.Web.TestForum.Models
{
public class ThreadModel<T> : PagedList<T>
{
or change T
to an actual type.
精彩评论