为什么让事情变得更复杂?为什么这样做:
txtNumerator.Text = txtNumerator.Text == "" ? "0" : txtNumerator.Text;
而不是这个:
if txtNumerator.Text="" {txtNumerator.Text="0";}
c#
c# ×1