I have a select where I have some options
- Test1
- Test2
- Test3
I have a model for each option
public class Teste1() {
//atributos e métodos
}
I would like, in a certain part of my system, to receive this string ex: "Test1"
and create an object of type Test1
something like:
var objeto = new "Teste1"
In other words, generating an object from its name