3
Reply

Literally nothing wrong with the compiler here...

Akkiraju Ivaturi

Akkiraju Ivaturi

Sep 7 2012 11:23 PM
936

Should this code compile? Does it? What does it mean?

using System;

class Test
{
enum Foo { Bar, Baz };

static void Main()
{
Foo f = 0.0;
Console.WriteLine(f);
}


Answers (3)