I have the following enumin an ASP.NET MVC application, and I want to use this enumeration as a parameter. For this, I would like to return a string string representation of this enum.
public enum SortOrder
{
Newest = 0,
Rating = 1,
Relevance = 2
}
How to get a lowercase representation of an enum in C #? I would like the transfers to also retain their natural representation in the form of tecs.
source
share