Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by tester756

4 years ago

Funnily enough LINQ Query syntax is really uncommon and everybody uses method syntax

var list = new List<int>{1,2,3}

var extracted = list

....................Where(x => x > 1)

....................Select(x => $"my number: {x})

....................ToList();

3 comments

tester756

Reply

aloisdg  4 years ago

Because the original felt odd in C#.

louthy  4 years ago

> everybody

Not everybody

  • tester756  4 years ago

    99%? 98%?

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities