You've found the artist formerly known as my blog! Feel free to peruse, stumbling upon everything from code snippets that never made it to GitHub, to random ramblings about my passion for technology.

So, I wrote this code, inspired by a Daily WTF post, which I wanted to make "more efficient":

public static string LastSixDigits(string number)
    return new List<string>(new string[] { number })
        .Where(n => !string.IsNullOrWhiteSpace(n) && n.Length >= 6)
        .Aggregate(string.Empty, (s, c) => s += c);

Continue reading...