B
B
BadCats2016-07-09 19:12:12
C++ / C#
BadCats, 2016-07-09 19:12:12

Question about Generic UpCust/DownCust specification in Generic types?

Why do only interfaces and delegates in C# support the technique of covariance and contravariance in Generic types?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
Xitsa, 2016-07-14
@BadCats

Here is an answer to the same question from Eric Lippert.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question