¡@

Home 

c# Programming Glossary: tbase

Is this a covariance bug in C# 4?

http://stackoverflow.com/questions/2783233/is-this-a-covariance-bug-in-c-sharp-4

to implicitly cast from elements to baseElements because TBase is implicitly convertible to IBase . public interface IBase.. IDerived IBase public class VarianceBug public void Foo TBase where TBase IBase IEnumerable TBase elements null IEnumerable.. IBase public class VarianceBug public void Foo TBase where TBase IBase IEnumerable TBase elements null IEnumerable IDerived..