Home » C# Programming » Enumerations

Which of the following is the correct output for the C#.NET code snippet given below? enum color { red, green, blue } color c = color.red; Type t; t = c.GetType(); string[ ]str; str = Enum.GetNames(t); Console.WriteLine(str[ 0 ]);

← Previous Next →

Discussion & Comments

No comments yet. Be the first to comment!