mardi 24 mars 2020

Activator.CreateInstance() creates an instance of a type but not affect reference

I have a null object qForm and passing it to my ShowFrom method. The qForm object is instantiated inside the method but when it retun back I see that it is null. I expect that it should not have been null because it is already instantiated. Why it did not take effect?

enter image description here enter image description here





Aucun commentaire:

Enregistrer un commentaire