Implementing Luhn algorithm using C#

Here are some extension methods that compute a Luhn checkdigit, validate a number with a checkdigit, and add a checkdigit to a number. Tested in .NET 4.5. There are extension methods for strings, ints, int64s and IList. I got some ideas for this from rosettacode.org using System; using System.Collections.Generic; using System.Globalization; using System.Linq; public static … Read more