Please can anyone advise me on how i can replace a particular character from a 2 mb string without using replace function in .NET
Thanks
Please can anyone advise me on how i can replace a particular character 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