CS
cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
//question :: why the 0x is used ?
//https://www.sololearn.com/Discuss/1476328/explain-me-a-code-example-please
//answer 0x is a hexadecimal value
//it enables the user to use bitwise AND and bitwise OR
namespace SoloLearn
{
class Program
{
[Flags] //[FlagsAttribute] //both attribute do the same and do work
enum Days
{
None = 0x0,
Sunday = 0x1,
Monday = 0x2,
Tuesday = 0x4,
Wednesday = 0x8,
Thursday = 0x10,
Friday = 0x20,
Saturday = 0x40 }
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run