I would like to store a Class in a variable, in order to use that variable whether it is the class that is being stored. I had thought of a variable of type object
if (nameForm == "Cliente")
{
Cliente _cliente = new Cliente();
var sourceType = _cliente.GetType();
var tipoEntidad = sourceType.GenericTypeArguments[0];
PropertyInfo[] property = tipoEntidad.GetProperties();
I do not need to instantiate the class, I need the class itself. How can I store a class in a variable?