Bom dia!
Por que isso não funciona?
Public Class clsGestor
Dim objModel As New suprimentofundo_desenvEntities()
Public Function SelecionarGestores() As GESTOR
Return (From g In objModel.GESTOR Select g).ToList(Of GESTOR)()
End Function
End Class
Erro:
Extension method 'Public Function ToList() As System.Collections.Generic.List(Of TSource)' defined in 'System.Linq.Enumerable' is not generic (or has no free type parameters) and so cannot have type arguments.
Obrigado.