C#C
C#4y ago
Thinker

Differing covariant arrays [Answered]

Why does this work
var xs = new string[] {};
object[] ys = xs;
but this doesn't?
var xs = new int[] {};
object[] ys = xs;

also idk what to name this post
Was this page helpful?