In .NET 4.0, the CLR supports covariance and contravariance of types in generic interfaces and delegates. Covariance enables you to cast a generic type to its base types, that is, you can assign a instance of type IEnumerable<Tl> to a variable of type IEnumerable<T2> where, T1 derives from T2.
Explain covariance and contra-variance in .NET Framework 4.0. Give an example for each.
1 Explain covariance and contra-variance in .NET Framework 4.0. Give an example for each. Thu Dec 04, 2014 4:54 pm
Digital Marketing
Admin
Digital Marketing » Your first category » Your first forum » Explain covariance and contra-variance in .NET Framework 4.0. Give an example for each.
Similar topics
Permissions in this forum:
You cannot reply to topics in this forum