Hi,
I have a enum with a flagsattribute, which i use to represent permissions. I use it to compare if (CurrentPermissions & Permission1 == Permission1)
etc...
[FlagsAttribute]
enum MyPermission
{
None = 0,
Permission1 = 1,
Permission2 = 2,
Permission3 = 4,
Permission4 = 8,...
..................
and so on
}
However, we reach a max limit. Can i use negative values like -1, -2, -4 etc. once i run out of enum values ?