Thanks MadHatte,


My current confusion is, it seems whether or not using flags attribute has the same result. Here is my code. So, my question now is that I want to see whether there are any special usage for flags attribute which we can not have without this attribute.

Any comments?

Code:
using System;

class Test
{
    enum Days
    {
        Mon = 1,
        Tue = 2
    };

    [Flags]
    enum DaysFlag
    {
        Mon = 1,
        Tue = 2
    };

    static void Main()
    {
        int a = (int) (Days.Mon | Days.Tue);
        int b = (int)(DaysFlag.Mon | DaysFlag.Tue);

        return;
    }
}

regards,
George