mardi 31 mars 2020

How to get the return type and the generic type of the return type of current method being executed in c#?

I have this code

    [HttpPost("search")]
    public async Task<ActionResult<int>> GetEmployees([FromBody] EmployeeSearchDto employeeSearchParameters)
    {

    }

How to get

ActionResult type and

int type

I can't seem to find the return type property in reflections.





Aucun commentaire:

Enregistrer un commentaire