Explain covariance and contra-variance in .NET Framework 4.0. Give an example for each. Ans. 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 ca...
See more
Download the Study24x7 App, so you can connect and collaborate.