日期:2014-05-18 浏览次数:20892 次
public enum ModuleType { None = 0, DiscsystemManager = 1, ImageTextInfoManager = 2 }
public enum ModuleType { None = 0, DiscsystemManager = 1, ImageTextInfoManager = 2 } private void button2_Click(object sender, EventArgs e) { ModuleType mt = (ModuleType)0; Console.WriteLine(mt); }
------解决方案--------------------
ModuleType m = (ModuleType)2;
------解决方案--------------------
public enum ModuleType { None = 0, DiscsystemManager = 1, ImageTextInfoManager = 2 } private void button2_Click(object sender, EventArgs e) { ModuleType mt = (ModuleType)(A.tinyint); Console.WriteLine(mt); }