Archive for January, 2009

I encourage you to run a test similar to the one I pasted below. In this example, using exception handling in my casting takes hundreds of milliseconds seconds to perform 10,000 cast operations (that fail). While my other code takes a few milliseconds.
Summary: Don’t use exceptions for logic. No really, don’t.
static void Main(string[] args)
{
TimeSpan span [...]