See the flag-enums exercise.
Two features are required for this exercise:
- Verify that the
Permission enum is marked with the [Flags] attribute.
- Suggest using
byte as the enum's backing type if no backing type was explicitly specified.
The boilerplate is here.
Example code is here.