How to define a ref-type variable from a assembly loaded at runtime?

Posted by smwikipedia on Stack Overflow See other posts from Stack Overflow or by smwikipedia
Published on 2010-03-22T15:19:02Z Indexed on 2010/03/22 15:21 UTC
Read the original article Hit count: 217

Filed under:
|

I want to define a ref type variable, like this:

SomeType v=null

and this "SomeType" is defined in another assembly which is loaded at runtime with AppDomain.CurrentDomain.Load().

I know how to create an object of "SomeType", but how to just define a ref-type variable only? Many thanks...

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET