Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Implementing of class with <T>

Tags:

c#

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 name 'T' could not be found (are you missing a using directive or an assembly reference?)

What should I do to avoid it?

like image 205
r.r Avatar asked Aug 27 '10 10:08

r.r


1 Answers

namespace PIMP.Web.TestForum.Models
{
    public class ThreadModel<T> : PagedList<T>
    {

or change T to an actual type.

like image 172
SwDevMan81 Avatar answered Sep 21 '22 08:09

SwDevMan81