This question already has an answer here:
I want to instantiate this class with reflection:
new DbAccess<ProductMoveRequestView>(dbSet);
I have found ProductMoveRequestView
with reflection. I have it as a Type object.
I have tried with Activator, seen through MakeGenericType
property on Type, and other variations, but I cannot seem to find a way to instantiate this.
Aucun commentaire:
Enregistrer un commentaire