It's a matter of variance, which C# doesn't support for generics. See Rick Byer's post on the subject.
Mark Cidade
2008-10-07 21:09:55
It's a matter of variance, which C# doesn't support for generics. See Rick Byer's post on the subject.
If you could cast a list of As as a list of Bs, then what would happen if you added an A?