In my enum below, my intention is to be able to use Scheduled
to mean 'ILT | VILT | HVILT'. In the guidelines for making this kind of enum everyone suggests using powers of 2, obviously, but if I actually mean Scheduled
to be a combination of those other values then this should work fine, right?
Or are there any gotchas I should watch out for when doing this?
[Flags]
public enum Modalities
{
None = 0,
ILT = 1,
VILT = 2,
HVILT = 4,
Scheduled = 7,
Online = 8,
Package = 16,
All = ~None
}