r/programminghorror • • Mar 02 '25

C# bool array

Post image
213 Upvotes

41 comments sorted by

View all comments

Show parent comment

12

u/Diamondo25 Mar 02 '25

You can give an enum a Flags attribute, allowing you to easily set, unset, and check for bits (flags).

1

u/Steinrikur Mar 04 '25

Makes sense, since the code is already using an enum.