In Visual Studio -- well, I am using Visual Studio 11 Beta, so that might be the issue -- I think I am coding enums ok. But while this works:
This does not work:
What is wrong?
In Visual Studio -- well, I am using Visual Studio 11 Beta, so that might be the issue -- I think I am coding enums ok. But while this works:
This does not work:
What is wrong?
Nothing to do with the VS11 beta. You just have to prefix with the enum name:
return TriangleType.error;
C# is a strong typed language. You are missing the enum name before the enum value. This should work:
return TriangleType.error;
and so on...