Question about flag enums
will these be set respectively as 1, 2, 4, 8... (in powers) of two automatically?
6 Replies
no
you have to assign the values yourself
All
[Flags]
does (besides telling humans what you're up to) is alter how ToString()
worksNifty trick: use bitshifting to not have to think about PoT
Personally, I prefer binary literals there
or - that
Thanks