79729635

Date: 2025-08-08 10:31:12
Score: 1.5
Natty:
Report link

We can create EqualityComparer object with the helper method like this now:
var set = new HashSet<MyClass>(comparer: EqualityComparer<MyClass>.Create((a, b) => a.Id == b.Id));

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Alex