Ok so you know how you can : (BindingFlags.Public | BindingFlags.Instance | Bindingflags.Static)?
How would I get my enum to work the same way?
I’ve seen something like : public enum myEnum{Item 1 = 0x0, Item2 = 0x1};
But I’m not sure how it works. Anyone know?
Thanks.
The enum values would need to be powers of two, i.e. 1, 2, 4, 8, 16, etc.
–Eric
1 Like
Oh I get it, it;s like binary and bit shifting. So like this?
public enumTestEnum{None =0x0, Val1 =0x1, Val2 =0x2, Val3 =0x4, val4 =0x8};
thanks for your help.
0x means a hex number, so you can just leave it at standard decimal (0, 1, 2, 4, 8).
–Eric
1 Like