views:

55

answers:

1

I've got a method I'm trying to translate from c# to vb, goes something like this ..

x.For(typeof(IRepository<>)).Use(typeof(Repository<>));

VB doesn't seem to like the idea of a IRepository(Of ) ... what's the syntax on that?

+3  A: 
x.[For](GetType(IRepository(Of ))).Use(GetType(Repository(Of )))
Steve Wright
Gotta love VB syntax! :-(
Christian Hayter