开发者

Implementing of class with <T>

开发者 https://www.devze.com 2023-01-13 03:06 出处:网络
I want to implement like this: namespace PIMP.Web.TestForum.Models { public class ThreadModel : PagedList<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.

0

精彩评论

暂无评论...
验证码 换一张
取 消