Is C# generics ready ?

So I was catching up on some blogging and noticed a thread about “issues” with VS.  One such issue was the “class Derived: Base crashes the editor” bug.  Sure enough this is 100% repeatable in C#.

Vb on the other hand has absolutely no “issues” here and you can code this in VB without  problem.

Class Base(Of T)


      Sub Merge(ByVal other As T)


      End Sub

End Class


Class Derived

      Inherits Base(Of Derived)

End Class

For the record, the problem in C# seems tot be a problem matching }’s   

 If only they had explicitly named closing constructs

This entry was posted in 491, 493. Bookmark the permalink.

2 Responses to Is C# generics ready ?

  1. Yeah, I discovered this problem yesterday when having a look at the little code challenge here:

    To be honest, I’m just disgusted that a bug like this can slip through so easily into an RTM product.

  2. Yeh, looks like if you want to work with Generics, then VB is the language of choice

Leave a Reply

Your email address will not be published. Required fields are marked *