TryParse Extension Methods
When .NET 2.0 was released, a TryParse() method was added to many value types such as Int32, DataTime, etc. This was a huge improvement because there was no longer a need to catch expensive exceptions and drag down performance. However, one drawback of the TryParse() method is that the syntax is a little clunky. The most common example looks like this: Person person = new Person(); string value = "21"; int num; int.TryParse(value, out num); person.Age = num; So it's great that we can do all...