79227916

Date: 2024-11-26 18:47:14
Score: 1
Natty:
Report link

Shortening Abhas' answer, this is what I do:

int count = new List<T>(theEnumerableList).Count;

One line and done.

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