How to replace string.empty to “0”

后端 未结 10 1785
无人共我
无人共我 2021-01-27 11:15

Just like the title says.

I\'ve tried doing str.Replace(\"\",\"0\"); but it gave me error because oldValue has zero length.

Is it possi

10条回答
  •  旧时难觅i
    2021-01-27 11:54

    If you know that str is empty then you may use star="a" If you want to check then write statement in if condition.

提交回复
热议问题