枚举
public enum ProEnums : int
{
/// <summary>
/// 下市
/// </summary>
outmarker=-1,
/// <summary>
/// 上市
/// </summary>
inmarket = 0
}
code:
protected string ShowStatic(int stat)
{
string result = string .Empty;
switch (stat)
{
case (int )ProEnums .outmarker:
result = "下市";
break ;
case (int )ProEnums.inmarket:
result = "上市";
break ;
default :
result = "" ;
break ;
}
return result;
}