Cook Computing

C# Future language features & scenarios

July 22, 2004 Written by Charles Cook

Eric Gunnerson asks for suggestions about what should be added to the version of C# after Whidbey. My only suggestion was for covariant return types. I don't come across the need for this feature every day but every now and then I find cases where they would be useful. It can save some casting, enhance static type checking, and make code clearer.

It turns out that Covariance and Contravariance for Delegates are already supported as of Whidbey (I just verified this works in beta 1).