How to go to Definition for lambda expressions in VS 2019 for Mac?

Preetinder Virk 1 Reputation point
2020-10-30T10:01:26.54+00:00

I am facing a situation that having installed Visual Studio for Mac 2019 I am not able to go to definition for lambda expressions like .where or .ToList. It just opens Assembly Browser. However for C# classes it does navigate to definition like for Console, Writeline, Join etc.

Example code:

List<Warrior> warriors = new List<Warrior>()
{
new Warrior() { Height = 100 },
new Warrior() { Height = 80 },
new Warrior() { Height = 100 },
new Warrior() { Height = 70 },
};

        List<int> heights = warriors.Where(wh => wh.Height == 100)
                                    .Select(wh => wh.Height)
                                    .ToList();

internal class Warrior
{
public int Height { get; set; }
}

Adding screens

arushi1

Hoping for early response

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
38,734 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 30,356 Reputation points Microsoft Vendor
    2020-11-02T03:24:01.647+00:00

    Hello @Preetinder Virk ,

    Thank you for taking time to post this issue in Microsoft Q&A forum.

    Visual Studio for Mac is currently not supported in the Microsoft Q&A forums, the supported products are listed over here: https://learn.microsoft.com/en-us/answers/products/ (more to be added later on).

    For the related questions about Visual Studio for Mac, you can post here: Developer Community Visual Studio for Mac.

    Thank you for your understanding.

    Sincerely,
    Tianyu

    • If the answer is helpful, please click "Accept Answer" and upvote it.
      Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.