Which class for making many replacements
- by HCL
I have to make a lot of text-replacements. Which class is best used to make this in a performant manner. Is it StringBuilder?
StringBuilder stringBuilder=new StringBuilder(startString);
stringBuilder.Replace(literala1,literala2);
stringBuilder.Replace(literalb1,literalb2);
stringBuilder.Replace(literalc1,literalc2);
...
or does exists a better class to do this. Btw, the literals will be mostly constants.