mardi 6 octobre 2015

dynamic class name for reflection in c#

I have a class :

Class MyClass
{
...
}

I need to get the type of the class in order to use it in reflection:

string className="MyClass";
var type1=Type.GetType(className, true); //I have a problem loading the class here.





Aucun commentaire:

Enregistrer un commentaire