private int inttype;
public string StrType
{
get
{
switch (inttype)
{
case 0: return "特级";
case 1: return "一级";
case 2: return "二级";
case 3: return "三级";
case 4: return "四级";
case 5: return "五级";
default: return "普通";
}
}
}
private int sex;
public string StrSex
{
get
{
switch (sex)
{
case 0: return "女";
case 1: return "男";
default: return "男";
}
}
}
一级菜鸟 发表于 2013-12-5 09:11
感觉用枚举更好一些哎
欢迎光临 苏飞论坛 (http://www.sufeinet.com/) | Powered by Discuz! X3.4 |