I'm using asp.net core to develop REST API and I have few enum values that to be expose to API response. And I'm able to do that but client developer don't know what are the enum's values. So I want to expose all enum values in the response.
Suppose I have following enum:
public enum niceEnum
itemA = 1,
itemB = 2,
itemC = 3
And wan to show in response as:
How we can do this using dictionary?
Views: 35 Total Answered: 1 Total Marked As Answer: 0 Posted On: