Maybe I'm just a little slow...

But I only just realized that extension methods are cool for avoiding NullReferenceExceptions. We all know that if you have something like this: LicensePlate licensePlate = null;Car car = licensePlate.Car; It will throw a NullReferenceException. However if you have an extension method public static Car GetCar(this LicensePlate lp); we can call it like this: Car…

9

LINQ to non-enumerable?

So I was reading Wes’ latest post about Monad’s a while back (which incidentally is well worth a read, it is the first good explanation of Monad’s I’ve seen that uses a language I am comfortable with in it’s examples, namely C#). Well one thing Wes kind of brushes over is the fact that he…

3