A few days ago, I published an article on heterogeneous collections in C#, proposing various possibilities to solve this problem given a specific set of constraints. My final pick was using generics, the built-in template feature of C#. But what the story did not say is that this solution triggers a code analysis warning at compile-time...