-4
我已经if语句在我的代码下面,我想知道是否有一种方法可以缩短这个代码块可以缩短吗?
if (ürün_kısakod.Text != "")
{
komut.Parameters.Add("@kısakod", SqlDbType.SmallInt, 5).Value = Int16.Parse(ürün_kısakod.Text);
}
else
{
komut.Parameters.Add("@kısakod", SqlDbType.SmallInt, 5).Value = DBNull.Value;
}
同意,我将离开发表评论,但不用药疗程iocre样品。 @HenkHolterman –