locked
Convert C# to VB RRS feed

  • Question

  • User-2089506584 posted

    Hi,

    I got this class parameters in C# and I can't convert one parameter to VB. [:(]

    public static string PageLinks(this HtmlHelper html, int currentPage,
    int totalPages, Func<int, string> pageUrl)

    Wednesday, September 9, 2009 11:50 PM

Answers

  • User312496708 posted

    Public Shared Function PageLinks(ByVal html As HtmlHelper, ByVal currentPage As Integer, ByVal totalPages As Integer, ByVal pageUrl As Func(Of Integer, String)) As String

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, September 10, 2009 12:06 AM

All replies

  • User312496708 posted

    Public Shared Function PageLinks(ByVal html As HtmlHelper, ByVal currentPage As Integer, ByVal totalPages As Integer, ByVal pageUrl As Func(Of Integer, String)) As String

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, September 10, 2009 12:06 AM
  • User397347636 posted

    This is an extension method - the VB equivalent is:

    <System.Runtime.CompilerServices.Extension> _
    Public Shared Function PageLinks(ByVal html As HtmlHelper, ByVal currentPage As Integer, ByVal totalPages As Integer, ByVal pageUrl As Func(Of Integer, String)) As String
        ... function logic
    End Function


     


     

    Thursday, September 10, 2009 11:00 AM