0

I have a enum like this,

enter image description here

I have created an IEnumerable of this enum type. And then I am calling API to fetch the list of this enum type, In response I got the values of enum, What I want is, the API response should contain the description of Enum.

How to achieve this in C#.

Sir Rufo
  • 18,395
  • 2
  • 39
  • 73
  • Why do you post text as image? – Sir Rufo May 12 '23 at 07:36
  • What type of server surfaces that in what format. Besides DescriptionAttribute is mostly for visual designers (especially the ones from Visual Studio) so presumably there isn't anything built in. – Ralf May 12 '23 at 07:37

0 Answers0