开发者

replace a character in string without using replace function in .NET

开发者 https://www.devze.com 2023-01-30 10:07 出处:网络
Please can anyone advise me on how i can replace a particular ch开发者_JS百科aracter from a 2mb string without using replace function in .NET

Please can anyone advise me on how i can replace a particular ch开发者_JS百科aracter from a 2 mb string without using replace function in .NET

Thanks


You should have a look at some of the solutions discussed here:

Memory Efficiency and Performance of String.Replace .NET Framework

It mentions the use of Regex.Replace and StringBuilder.Replace

0

精彩评论

暂无评论...
验证码 换一张
取 消