/ Published in: C#
Examples of use of Enum type, like how to iterate its items.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
public enum StudioGhibliDirectors { HayaoMiyazaki, IsaoTakahata, TomomiMochizuki, YoshifumiKondo, HiroyukiMorita, GoroMiyazaki, HiromasaYonebayashi } public class EnumIteration { public static void Main(string[] args) { Console.WriteLine("Studio Ghibli directors:"); { Console.WriteLine(director.ToString()); } } }