mercredi 14 novembre 2018

How to find out if a numeric type is signed or unsigned in C#

I want to know details about a field that is unknown at compile time.

I know I can find out that it is a value type with Type.IsValueType. But from there how do I know it is a number? A fixed point number? Signed or unsigned??

Is there anything like Type.IsSigned?





Aucun commentaire:

Enregistrer un commentaire