We now also have a generics whitepaper on MSDN, written by the developer who’s been implementing a lot of the generics support in VB! I know a lot of people still think that VB 2005 isn’t going to support generics, but here’s the real deal…
We now also have a generics whitepaper on MSDN, written by the developer who’s been implementing a lot of the generics support in VB! I know a lot of people still think that VB 2005 isn’t going to support generics, but here’s the real deal…
I found that VB doesn’t support value type or reference type constraints as C#. Generic type created in C# with value type constraint will work in VB, but it’s no way to create a generic type with value type constraints in VB. Furthermore, reference type constraint doesn’t work in VB at all. I think it’s a little problem to be solved.
Fan: This is a limitation of Beta 1 which will be fixed in Beta2!
Pingback: ShowUsYour
A great article, thanks for the link.
Actually, I have written an article in Russian on some of the new features in VB 2005 (Generics, Operator Overloading, Using block, Unsigned Types and IsNot/TryCast/Continue). So Russian programmers will know of generics in VB just-in-time 😉
But this article helped me to understand last point I was interested in – the New constraints.