What\'s the fastest and easiest to read implementation of calculating the sum of digits?
I.e. Given the number: 17463 = 1 + 7 + 4 + 6 + 3 = 21
public static int SumDigits(int value) { int sum = 0; while (value != 0) { int rem; value = Math.DivRem(value, 10, out rem); sum += rem; } return sum; }