jeudi 5 mars 2020

How do i create an object of the class in my namespace?

I am trying to use Reflection to create my objects at run time. However I keep getting System.TypeLoadExeption

'Could not load type 'x' from assembly 'y', version = 1.0.0.0, culture = neutral PublicKeyToken=null'. I just create a new project to try it and it still wont work even though i have not changed the namespace names.

ObjectHandle keyword = Activator.CreateInstance("NamespaceProject", "ChangeDue");
Object myObject = keyword.Unwrap();




Aucun commentaire:

Enregistrer un commentaire