Getting a Type variable knowing the name of type C#
- by StuffHappens
Hello!
I'm developing a TypeTranslator class which has a method Type TranslateType(Type type).
This method gets a type of an interface and if there's a class of interface name without leading I it creates it, otherwise an exception is raised.
Here's some code to clearify what's written before:
class Program
{
interface IAnimal { }
class…