How to replace last character of the string using c#?

后端 未结 0 2036
别跟我提以往
别跟我提以往 2021-02-11 16:45
string str = \"Student_123_\";

I need to replace the last character \"_\" with \",\". I did it like this.

str.Remove(str.Length -1, 1)         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题