C# enum excersice mycolor - print color and it's int (list index) : I am trying to solve this question , and i need your help.
    
I use enumaration of the colors. the code below print each color's name. My question is how i add each color index number as well??
    
thank you



            foreach (string i in Enum.GetNames(typeof(MyColors)))
            {
                Console.WriteLine(i);
                
            }

            
        }

        public enum MyColors
        {
            White = 0,
            Black = 1,
            Orange = 2,
            Purpole = 4,
        }

    }
}




