0

In C#, the reflected Type object for int contains Int32 for a Name. Similarly, typeof(byte).Name would be "Byte", etc. Short of introducing an explicit check for all known primitive types, is there a way to retrieve a friendly name (e. g. int) from the said Type object?

Seva Alekseyev
  • 59,826
  • 25
  • 160
  • 281

0 Answers0