Masking Strings in C#

I recently needed to mask out some characters of a credit card string so that only the last 4 were displayed. Surprisingly there doesn’t seem to be many good examples of this so I decided to put together something myself and I figured it would be more useful as an Read more

Parsing Strings to Boolean Values with C#

In trying to parse some URL parameters in a project I realised that Boolean.Parse and Boolean.TryParse work in slightly different ways and that neither was broad enough for my purposes. Boolean.TryParse Boolean.TryParse takes a string input parameter and a Boolean output parameter and returns a Boolean specifying whether the input Read more