This feature has apparently existed for years, but I found out only now. CLR has an equivalent of HTTP redirect for types, it is called You can move a class […]

“Any sufficiently¬†advanced technology is indistinguishable from magic” Athur C. Clarke While reviewing some code, I stumbled upon a class that receives an ObservableCollection<ILogFormatter> in the constructor. I discovered that this […]

It turns out that after re-registering type as a singleton in Unity calls to container.Resolve() return a new instance. This may lead and have led to ugly bugs if your code relies […]

Recently I’ve got another reminder why constructors should be simple. The situation in a nutshell: class BaseHandler subscribes to an observable in its constructor. The handler is virtual, class DerviedHandler adds incoming […]

.NET string comparison is not lexicographical

This Friday I wrote a unit test and to my astonishment I have found that “a” < “A” < “ab”, with .NET¬†InvariantCulture and InvariantCultureIgnoreCase string comparers. That means that .NET […]