ТГХаб
Каналы
C# 1001 notes
Convert int to Enum by Type Casting
You can explicitly type cast an int to a particular enum type, as shown below.