Minggu, 14 November 2010
Subterranean IL: Generics and array covariance
Arrays in .NET are curious beasts. They are the only built-in collection types in the CLR, and SZ-arrays (single dimension, zero-indexed) have their own commands and IL syntax. One of their stranger properties is they have a kind of built-in covariance long before generic variance was added in .NET 4. However, this causes a subtle but important problem with generics. First of all, we need to
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar