Write a Linq expression to fetch the desire results

AnswerBot
1y

Linq expression to fetch desired results

  • Use 'Where' to filter data based on conditions

  • Use 'Select' to project data into desired format

  • Use 'OrderBy' or 'OrderByDescending' to sort data

  • Use 'Skip' and 'T...read more

Anonymous
5mo
string input = "programming"; var duplicates = input.GroupBy(c -> c).where(g -> g.Count() > 1).Select(g -> g.Key) Consore.writeline(duplicates);
Help your peers!
Add answer anonymously...
Medtronic Lead Engineer Interview Questions
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter