Nolanamy
Nolanamy
2017-12-07 05:15

c#这段代码怎么理解,谢谢

  • c#
public class JZD
{
    public string JZDHANDLE;
    public string JZDBSM;
    public string JZDYSDM;
    public JZD()
    {
        JZDHANDLE = "";
        JZDBSM = "";
        JZDYSDM = "";
    }
    public string retrunVal(string ZDMC)
    {
        switch (ZDMC)
        {
            case "JZDHANDLE": return JZDHANDLE;
            case "JZDBSM": return JZDBSM;
            case "JZDYSDM": return JZDYSDM;
            default: return "";
        }
    }
}
  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

3条回答