Answers and code snippets from ASP.NET projects (Webforms/MVC/Classic ASP)
Array values = Enum.GetValues(typeof(MyEnumType)); foreach (MyEnumType val in values) { var enumName = Enum.GetName(typeof(MyEnumType), val); }
No comments:
Post a Comment