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...
public partial class DirList : System.Web.Mvc.ViewPage<List<Task>>
{
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With