Hi,
I know that C# supports covariance in arrays like this :
object[] array = new string[3];
But I'm getting an error when it tries to compile the below code
class Dummy<K,T> where T:K
{
public void foo()
{
K[] arr = new T[4];
}
}
It says "Cannot implicitly convert type 'T[]' to 'K[]' "
Why I'm getting this error ???