¡@

Home 

c# Programming Glossary: doubledown

Generic type parameter covariance and multiple interface implementations

http://stackoverflow.com/questions/14562047/generic-type-parameter-covariance-and-multiple-interface-implementations

like this using explicit interface implementation class DoubleDown IGeneric Derived1 IGeneric Derived2 string IGeneric Derived1.. .GetName return Derived2 If I use the non generic DoubleDown class and cast it to IGeneric Derived1 or IGeneric Derived2.. or IGeneric Derived2 it functions as expected var x new DoubleDown IGeneric Derived1 id1 x cast to IGeneric Derived1 Console.WriteLine..