I wonder if there is any way to write the followig in a few lines instead of using all cases. Both CategoryType and AnimalSpecies are Enums.private AnimalSpecies GetAnimalSpeciesBasedOnCategoryType(CategoryType categoryType){    switch (categoryType)    {        case CategoryType.Reptile :            return AnimalSpecies.Reptile;        case CategoryType.Bird:            return AnimalSpecies.Bird;        case CategoryType.Mammal:            return AnimalSpecies.Mammal;        case CategoryType.Insect:            return AnimalSpecies.Insect;        case CategoryType.Marine:            return AnimalSpecies.Marine;        default:            MessageBox.Show(Category doesn't exist.Something wrong in programming code);            return AnimalSpecies.Marine;    }}
Return specific variable of Enum, determined by variable with the same name of another Enum?
c#
How about (untested not near a computer at the moment)   return (AnimalSpecies )Enum.Parse(typeof(AnimalSpecies ), categoryType.ToString());