November, 2013
5 11 2013
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 […]
5 11 2013
Today I came across a C#-feature i know for a long time, but never used in real code. I think thats about to change. 😀 First, have a look at the following lines and try to figure out what happens: How is it possible to add an object to a double? Normally it won’t even […]
4 11 2013
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 […]