Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4061940
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T15:32:07+00:00 2026-05-20T15:32:07+00:00

Using lambda’s in VB.Net results in no intellisense. Is this a bug with VS2010

  • 0

Using lambda’s in VB.Net results in no intellisense. Is this a bug with VS2010 or expected? Note that it works fine in C#

Return Array.TrueForAll(chequeColl, Function(x) x.Number <> "N") 'No intellisense Number does not appear


Return Array.TrueForAll(chequeColl, Function(x As MyClass) x.Number <> "N") 'Now casted intellisense appears

UPDATE: Here’s an example

Public Class Cheque

    Public Property Id As String
    Public Property Status As Byte
    Public Property Amount As String
    Public Property Number As String

End Class


Public Class ChequeCollection

    Private chequeColl() As Cheque

    Public Sub DoStuff()
        Array.TrueForAll(chequeColl, Function(x As Cheque) x.Number = 1) 'x has to be cast as cheque for intellisense to appear
    End Sub

End Class
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T15:32:08+00:00Added an answer on May 20, 2026 at 3:32 pm

    An array of object is not strongly typed like a List(Of T) class would be. So when you type ‘x.’ and expect ‘Number’ to show up in Intellisese, it will not. The runtime has no idea of the object types within that Array.

    If you chose to do so, you could use LINQ to convert that Array into a stongly tped object collection, that would then show you the Intellisense. The follwing line should work properly:

    Dim ChequeList = (From c In MyArrayOfObjects Select c).ToList()

    Also one other thing to check for the VB.NET vs C# intellisense. ‘Option Infer’ must be turned ‘On’. It is by default, but not for upgraded projects (i.e. upgraded from 05 -> 08 -> 10)

    Why Are My Lambda Functions Throwing An Error at Run Time With a System.MissingMemberException Exception?
    http://allen-conway-dotnet.blogspot.com/2010/09/why-are-my-lambda-functions-throwing.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing a API that uses lambda expressions to specify properties. I'm using this
I often do sorts in Python using lambda expressions, and although it works fine,
How to write this linq query using Lambda expression public List<Employee> GetList() { return
What would this line of C# using Lambda expression be in VB.Net? string s
Is there any overhead associated with using lambda expressions in C++0x (under VS2010)? I
I'm new in using lambda expression sorry for a dumb question. Anyway consider this
i want to create query like this using lambda expression in ObjectQuery SELECT *
How do i reverse the element of this array using lambda .. array =
How can you write this query using a lambda expression or LINQ: SELECT *
I have a lambda expression that currently looks like this: item => Reports.Add(item) I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.