3 ms·
And C# could only add it because the now-F# folks had originally designed it into the CLR Generics system. It's highly unlikely C# would ever go far out of the
by MichaelGG 13y ago
And C# could only add it because the now-F# folks had originally designed it into the CLR Generics system. It's highly unlikely C# would ever go far out of the straightforward IL generation it does to implement such a feature otherwise.
- Locke1689 13y agoNope. The CLR has supported it back to v2, and C# delegates used the feature before language support was added in C# 4
- MichaelGG 13y agoRight, variance was part of the original MSR proposal for CLR Generics. How did delegates use variance? I've never been terribly clear on the whole delegates concept - they're like first class functions, except nominally typed and weird.