Language Basics C# Book

To change the enum backend value we specify the value for the constant.
using System;
enum WeekDay
{
Monday = 4, Tuesday, Wednesday, Thursday = 10, Friday, Saturday, Sunday
}
class Test
{
static void Main()
{
WeekDay day = WeekDay.Monday;
if (day == (WeekDay)4)
{
Console.WriteLine("it is Monday");
}
}
}
The output:
it is Monday