[Flags]
enum ActionAttributes {
Read = 1,
Write = 2,
Delete = 4,
Query = 8,
Sync = 16
}
This is how you define an enumerated type with the FlagsAttribute
To assign e.g. ActionAttributes aa = ActionAttributes.Read |
ActionAttributes.Write;
To check if aa has the Read Attribute e.g. if ( (aa &&
ActionAttributes.Read) == ActionAttributes.Read) {}