vb.net - GetType on generic types -


i'm trying register presenters windsor using convention based method trying in vb.net, problem not want compile statement:

dim type = gettype(abstractpresenter(of)) 

i getting : few type arguments abstractpresenter(of tview, tpresenter)

which don't understand because valid statement according question. showing valid in other c# vb.net converters when converting typeof(abstractpresenter<>).

any ideas?

there 2 type arguments, , need specify this, multi-dimensional arrays:

dim type = gettype(abstractpresenter(of ,)) 

looks weird, compiler knows abstractpresenter expects 2 type arguments.

by way, c# has same requirement. above written as:

var type = typeof(abstractpresenter<,>); 

Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -