Lambdas and anonymous delegates for Debugging

I was posed the problem a few weeks ago that someone has a coding project where the execution engine swallows all exceptions and unless explicitly catching all exceptions (he didn’t want to put a big try catch around everything in production code) there would be little or difficulty in finding if an exception had been…

2

Entity Framework 4.0

With .net 4.0 comes Entity Framework 4.0 which will help with data access and rapid development of database projects! (Don’t worry if you’ve only seen one version of EF before now, this is only the second release). A while back now in PDC was the session with Shyam Pather and Chris Anderson demoing new features…


Code Contracts with .Net 4.0

I don’t know how many times I have seen a method which I have been trying to debug with a whole stack of parameter checking code at the start of the method to ensure nothing weird happens with unexpected input.  This subsequently caused the nicely abstracted methods to be less abstract than originally intended.  Thankfully…


Dynamic XML Reader with C# and .Net 4.0

Last week I was at a brilliant .net 4.0 training session lead by Richard Blewett of Developmentor (http://www.develop.com/) Along with the new features of .net 4.0 (including the long awaited Tuple classes, BigInteger (an unbounded int), extra Code Access Security stuff and a brilliant new feature Code Contracts) is the dynamic keyword, which allows better…

1