What is the output of the below given code?
public enum WeekDays
public class Demo
public static void Main()
Console.WriteLine(WeekDays.Monday == WeekDays.Monday);
Console.WriteLine(WeekDays.Monday < WeekDays.Tuesday);
The comparison operators are overloaded to work with members elements of enum as smoothly as they do with numbers. and we cannot use these comparison operators to compare two enums from different families
Back To Top