Getting rid of null checks in property chains with - but not limited t

added by sandord
8/6/2010 8:30:52 AM

16 Kicks, 675 Views

This article explains how to get rid of the annoying null checks you often have to do before you can evaluate expressions like Order.Customer.Address.ZipCode safely. The provided code builds and compiles an expression tree that does the job in an elegant and well performing manner. Specific extension methods for AutoMapper and S#arpArchitecture are provided as well.


0 comments