fixing that can't get the MapValueAttribute of enum type in GenerateEnum method