No Generics for You!

It seems there's no way to produce generics in PDC Whidbey with Reflection Emit. Or explicitly with CodeDom. Boo. Nor does operator overloading for generic types work in VB:
Public Class [Set](Of T As Object)
    Public Shared Operator =(ByVal a As [Set](Of T), ByVal b As [Set](Of T)) As Boolean
        ' ...
    End Operator
This gives the error: "At least one parameter type of this binary operator must be the enclosing type 'Set'."

Comments:

Reflection.Emit support for producing Generic types is on the cards. Look for it in the Beta 1 drop in the near future. — Joel Pobar

Powered by Google App Engine
Custom Search