Add a character on each line of a string

前端 未结 3 790
没有蜡笔的小新
没有蜡笔的小新 2021-01-26 08:47

I make a CSV converter, for this, I need to replace all the spaces with \";\". I have already did this step. The problem is that I have a texbox with the multiline mod. Here is

3条回答
  •  借酒劲吻你
    2021-01-26 09:37

    content1 = string.Concat( content1.Replace(" ", ";"), ";");
    

    Remove all spaces then concat ";" at end

提交回复
热议问题