Tengo un problema al utilizar el vb equivalente de la expresión MAX lambda. en foos.Max (función (x) x.id) cuando intento INTELLISENSE la propiedad ID VS no lo mostrará. Pero cuando ejecuto el ejemplo, funciona. ¿Hay algo que estoy haciendo que está mal, y tengo suerte de que funcione?vb función lambda MAX
Sub Main()
Dim foos As New List(Of Foo)
Dim bob As New Foo() With {.id = 5, .name = "bob"}
foos.Add(bob)
foos.Max(Function(x) x.id)
End Sub
Public Class Foo
Public Property id() As Integer
Get
Return m_id
End Get
Set(ByVal value As Integer)
m_id = Value
End Set
End Property
Private m_id As Integer
Public Property name() As String
Get
Return m_name
End Get
Set(ByVal value As String)
m_name = Value
End Set
End Property
Private m_name As String
End Class