【发布时间】:2012-05-10 22:54:24
【问题描述】:
如何将以下代码转换为使用 ?: 运算符.. 可能吗?
tbtotalamount.Text = string.Format("{0:n2}", dtl.Compute("sum(NetPay)", ""));
if (tbtotalamount.Text.Length == 0)
{
tbtotalamount.Text = "0";
}
【问题讨论】:
标签: c# string conditional-operator