枚举,以及中文对应解释
时间:2011-05-11 来源:hen
public enum eColor
{
discus = 0,
black=1,
red=2
}
public string[] strsColor ={
"七彩",
"黑色",
"大红色"};
public string GetColor(eColor em)
{
return strsColor[(int)em];
}
相关阅读 更多 +
时间:2011-05-11 来源:hen
public enum eColor
{
discus = 0,
black=1,
red=2
}
public string[] strsColor ={
"七彩",
"黑色",
"大红色"};
public string GetColor(eColor em)
{
return strsColor[(int)em];
}