Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VB.NET generics to C# syntax

Could you please show me the C# Equivalent of this VB.NET code:

Public Partial Class Index
    Inherits System.Web.Mvc.Viewpage(Of List(Of Task))


End Class

I am not sure where/how to add it in for C#:

public partial class DirList : System.Web.Mvc.ViewPage
{

}

The code is suppose to tell the class to expect a list of tasks from the controller...

like image 529
Brettski Avatar asked Oct 10 '08 02:10

Brettski


1 Answers

public partial class DirList : System.Web.Mvc.ViewPage<List<Task>>
{

}
like image 60
yfeldblum Avatar answered Oct 02 '22 03:10

yfeldblum