jeudi 11 février 2021

How to find all DateTime properties of anonymous object?

I want to convert all dates received from client into UTC before processing them in server side code. I am thinking to use ActionFilter where I want to find all the date fields from Request payload and convert those into UTC dates. I know Reflection helps in finding properties by it's type but it doesn't work in case of Anonymous objects.

Here is code example I am trying to follow





Aucun commentaire:

Enregistrer un commentaire