I wanted to dynamically load classes in C#. I remember in Java we used Class.forname("String")
, so after googling I found out that we could use Activator.CreateInstance
in C# . I cannot figure out what my assembly name would be here. Any suggestions ?
object obj = Activator.CreateInstance("MyAssembly","namespaceA.SomeClassName");