替换此" " 用这个""使用C#

moe*_*moe 0 c# asp.net

如果表格行为空,我在我的文本框中显示此空格""的问题.所以我想用这个"  "替换这个" ".例如,这是我所拥有的:

StartTime.Text = row.Cells[5].Text;
Run Code Online (Sandbox Code Playgroud)

所以这里是我想要实现的伪代码:

if (StartTime.Text == "" " then replace it with "  ")
else show the value of StartTime.Text
Run Code Online (Sandbox Code Playgroud)

我知道我的C#技能太差了所以请帮忙.谢谢

d.p*_*pov 8

关于什么 StartTime.Text = row.Cells[5].Text.Replace("&nbsp", " ")

或者我没有正确理解这个问题