这也太鬼异了吧?
class Program
{
enum Weeka
{
Monday, Tuesday, Wednesday, Thursday, Friday=2, Saturday=2, Sunday
}
enum Weekb
{
Monday, Tuesday, Wednesday, Thursday=2, Friday = 2, Saturday = 2, Sunday
}
static void Main(string[] args)
{
Console.WriteLine(Weeka.Tuesday + 1);
Console.WriteLine(Weekb.Tuesday + 1);
Console.Read();
}
}
大家知道输出什么吗?
Saturday
Thursday
这个结果是怎么来的?
------解决方案--------------------