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

c# - Where does the .ToList() go in LINQ query result -

android - CollapsingToolbarLayout: position the ExpandedText programmatically -

Listeners to visualise results of load test in JMeter -