ALLINSIGHT

Home of the AlmostImplementedException

November, 2013

Lets get dynamic with ExpandoObject

With .Net 4 Microsoft introduced the ExpandoObject (funny name). With this object you can dynamically add and remove properties. Thats very useful to get rid of this ugly CleanCode you produce every time ;-). Seriously, don’t use this class except for very special occasions, like producing a dynamic object where you don’t care what properties […]

cast vs “as”

Another good example for our categories “difference between a duck” AND “CleanCode” is an ordinary ()-cast against “as”-cast. Why is it in both categories? Both do roughly the same thing and its more a question of code-style which one you use. But more important both use different ways to approaching the same problem and thats […]