string className="SomeClass"; Type type=Type.GetType(className); if(type!=null) {
For the second part of your question: -
Implementation Example - Tell me, what do you want to create a class object based on a configuration option?
I do not know why you want to do this. However, if your classes implement the interface and you want to dynamically create objects of these classes based on configuration files, I think you can look at the Unity IoC container . Its really cool and very easy to use if it fits your scenario. An example of how to do this is here .
source share