concept enum in category asp.net
appears as: enum

This is an excerpt from Manning's book ASP.NET Core in Action, Second Edition.
It’s common to want to display a list of
enumoptions in a<select>list. This is so common that ASP.NET Core ships with a helper for generating aSelectListItemfor anyenum. If you have anenumof theTEnumtype, you can generate the available options in your View usingasp-items="Html.GetEnumSelectList<TEnum>()".