I was looking at the code I have currently in my project and found something like this:
public enum MyEnum { open = 1 << 00, close = 1 &
This allows you to do something like this:
var myEnumValue = MyEnum.open | MyEnum.close;
without needing to count bit values of multiples of 2.
(like this):
public enum MyEnum { open = 1, close = 2, Maybe = 4, ........ }