System.Activator.CreateInstance(Type.GetType(className))
The problem, however, is that C # 3.0 is a statically typed language. You cannot just call random methods on the returned object. You can have classes that you could create, implement some common interface and pass the result of the above expression to the interface, or manually use reflection to call methods on the returned object.
source
share