entity.userid = txtUserid.Text;
if (entity.userid.Length <= 0)
{
txtUserid.Focus();
throw new Exception("UserID不能为空");
if (entity.userid.Length <= 0)
{
txtUserid.Focus();
throw new Exception("UserID不能为空");
}
c#无法将类型int隐式转换为string怎么解决?