How does the string replace function in VB.net not work?

后端 未结 6 538
生来不讨喜
生来不讨喜 2020-12-11 05:06

I wrote up some code. The code is shown below. The first part is to read a html into string format. The second part is to search a mark in the string and replace the string

6条回答
  •  余生分开走
    2020-12-11 05:24

    "this is a string" If you do Replace 'string' with 'whatever' this string should be: "this is a whatever". so what you can do is put that in a new string. how? replace method returns a string so, it is easy :) see this: msdn

提交回复
热议问题