

Seu próximo nível começa aqui
Seu desenvolvimento não pode ter limites. Garanta sua Assinatura Ilimitada e libere uma preparação completa com os melhores professores do Brasil.
No ASP.NET MVC 5, para que um auxiliar de HTML personalizado (Custom HTML Helper) possa ser invocado como @Html.Quoted("texto"), ele deve ser declarado como:
Public Shared Class MyExtension
Public Shared Function Quoted(
this ByVal helper As HtmlHelper,
ByVal text As String
) As String
Return """" & text & """"
End Function
End Class
Public Module MyExtension
Public Function Quoted(
ByVal helper As HtmlHelper,
ByVal text As String
) As String
Return """" & text & """"
End Function
End Module
Imports System.Runtime.CompilerServices
Public Module MyExtension
<Extension()>
Public Shared Function Quoted(
this helper As HtmlHelper,
ByVal text As String
) As String
Return """" & text & """"
End Function
End Module
Imports System.Runtime.CompilerServices
Public Module MyExtension
<Extension()>
Public Function Quoted(
ByVal helper As HtmlHelper,
ByVal text As String
) As String
Return """" & text & """"
End Function
End Module
Imports System.Runtime.CompilerServices
Public Class MyExtension
<Extension()>
Public Shared Function Quoted(
ByVal helper As HtmlHelper,
ByVal text As String
) As String
Return """" & text & """"
End Function
End Class