Q:

Blazor/Razor: InputSelect with Enum? 

How can I use the values of an enum class as options for an InputSelect? 
Example enum:
public enum Test
{
    Test1,
    Test2
}

I am using with Blazor with Razor components. 

A:

<select>

    @foreach (var Item in Enum. GetValues(typeof( DayOfWeek)))
    {
        <option value="@Item">@Item</option>
    }

