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;
}
}
}
enum与int转换问题,枚举直接赋值1,怎样才能支持?
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-