79533163

Date: 2025-03-25 09:16:26
Score: 1.5
Natty:
Report link

Your code dt.AsEnumerable().Sum(r => double.Parse(r[1].ToString()) + double.Parse(r[2].ToString())) will query the entire DataTable Instead of summing the current row, all rows in the column are summed.

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