Anyone out there any ideas why this compiles and runs?
I'm using Visual C# 2008.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
public enum fluf_value
{
thegood,
thebad,
theugly,
};
static fluf_value MyFunc()
{
return fluf_value.theugly;
}
static void Main(string[] args)
{
MyFunc();
Console.ReadKey();
}
}
}
Is MyFunc returning something into the twilight zone?
Is there a compiler option to inhibit this behavior?
Any help is more than welcome.