using System; namespace dotFionn.Checksum.Utils { public static class Extensions { public static int digitSum(this int inInt) { int digitSum = 0; while (inInt > 0) { digitSum += inInt % 10; inInt /= 10; } return digitSum; } } }