.Net > Enumerations > Beginner Next/Skip this question

What would be the output of following code snippet?

using System;

class Program
{
    enum MyColorEnum
    {
        Red = 0,
        Blue = 0,
        Green = 0
    };

    static void Main()
    {
        MyColorEnum me = new MyColorEnum();
        me = (MyColorEnum)(1);
        Console.WriteLine(me);
        Console.ReadLine();
    }
}
Answers :
Explaination :
social share share on facebook share on twitter share on google plus share on linkedin
Add Comments :

Login

Register

Next Question