You did not specify which version of Visual Studio you are using, but I think this is VS 2008, since IntelliSense works correctly in VS 2010. In addition, this was reported to Microsoft and they stated that they will be fixed in the next version of Visual Studio. which at the time of writing this report would be for 2010.
Your code works fine and compiles because it is correct, so you are not doing anything wrong. If you really want to get IntelliSense in VS 2008 for lambda expression, you need to specify the type:
foos.Max(Function(x As Foo) x.id)
By adding As Foo
, you should get IntelliSense support. To repeat, the problem was resolved in VS 2010.
source share