MCQs>IT & Programming>C#>[Flags] enum Days{ None=0x0, WeekDays=0x1, WeekEnd=0x2 } Days workingDays = Days.WeekDays | Days.WeekEnd; How do you remove the Days.WeekEnd from the workingDays variable?
C# MCQs
[Flags] enum Days{ None=0x0, WeekDays=0x1, WeekEnd=0x2 } Days workingDays = Days.WeekDays | Days.WeekEnd; How do you remove the Days.WeekEnd from the workingDays variable?
Answer
Correct Answer: workingDays &= ~Days.WeekEnd;
Explanation:
Note: This Question is unanswered, help us to find answer for this one