79760738

Date: 2025-09-10 10:27:34
Score: 1
Natty:
Report link

Use { Count: > 0 } to check if the collection is not null and if the count is greater than 0 at the same time.

if(yourCollection is { Count: > 0 })
{ }
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: sahin