vendredi 5 mars 2021

Reflection: Get closing type for generic base class

I have a class defined as the following:

    public class GetCustomerQuery : QueryBase<CustomerDto>{}

Once I get my hands into the Type of GetCustomerQuery, how do I get:

  1. the Type of CustomerDto?
  2. An instance of CustomerDto?




Aucun commentaire:

Enregistrer un commentaire