Is C# generics ready ?

Posted Fri, Nov 11 2005 0:37 by bill

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

Filed under: ,

Comments

# re: Is C# generics ready ?

Friday, November 11, 2005 8:02 AM by bill

Yeah, I discovered this problem yesterday when having a look at the little code challenge here: http://blogs.msdn.com/peterhal/archive/2005/11/09/490985.aspx

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

# re: Is C# generics ready ?

Friday, November 11, 2005 11:48 AM by bill

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

# Taking Control of My VB2005 Application

Monday, November 21, 2005 4:16 AM by TrackBack

I was doing some tinkering tonight. I created a new WinForms app, but instead of just having a start...