using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
public enum Type
{
A,
B,
C,
}
class Program
{
static void Main(string[] args)
{
// 这句话怎么支持?
Type type = 1;
}
}
}
A = 1,
B = 2,
C = 3,
试试
Type type = (Type)1;