changed line 458: public MyEnum MyEnum { get; set; } to: public MyEnum MyEnumCurrent { get; set; } because it throws an error if you reuse the already declared name