string.Replace (or other string modification) not working

前端 未结 4 595
误落风尘
误落风尘 2020-11-22 06:17

For the following code, I can\'t get the string.Replace to work:

someTestString.Replace(someID.ToString(), sessionID);

when I

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-22 06:45

    someTestString = someTestString.Replace(someID.ToString(), sessionID);
    

    that should work for you

提交回复
热议问题