mardi 30 novembre 2021

What is the best way of getting default value from Type

I have Type and I want to get the default value. For example, if Type is class or nullable I should get null. But if it is integer, DateTime. decimal, ... I should get 0. What is the best way of doing this?





Aucun commentaire:

Enregistrer un commentaire