vendredi 14 septembre 2018

Why do I have to specify the namespace in the parameter for assembly.GetType()?

Take the below example:

var assembly = Assembly.Load("ProjA.Primates");
var myType = assembly.GetType("ProjA.Primates.Bonobo");

If I do not specify the "ProjA.Primates." substring, an exception is thrown.

Why can't it successfully find the Bonobo type in the loaded assembly?





Aucun commentaire:

Enregistrer un commentaire