79151808

Date: 2024-11-03 00:14:42
Score: 1.5
Natty:
Report link

It was solved by just changing All to Any! Thank you for the help!

var genreBooks = allBooks.Where(x => x.Genres.All(y => y == "Horror")).ToList();

Became

var genreBooks = allBooks.Where(x => x.Genres.Any(y => y == "Horror")).ToList();
Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Christofer Carlsson