给定以下枚举:
enum MyEnum
{
ValueOne = 1,
ValueEmpty,
ValueTwo = 2,
ValueThree = 2,
ValueFour = ValueOne | ValueEmpty,
ValueFive = ValueTwo | ValueThree
}
ValueFour 和 ValueFive 元素中涉及哪些操作,因为这些是我得到的值?
//Is assigned 3
var valueOne = (int) MyEnum.ValueFour;
//Is assigned 2
var valueTwo = (int)MyEnum.ValueFive;
谢谢