vb.net - TryCast using an indirect type? -


is there anyway specify object type trycast indirectly? example of i'd (note: not work - syntax error saying "type 't' not defined".)

public sub foo()     dim somobject new object      each t type in assembly.getexecutingassembly().gettypes()         trycast(somobject, t)     next  end sub 


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -