StringBuilder as an alteration tool
Using StringBuilder To Replace Values
This is a clever idea:
instead of using string.Replace()
to replace part of a string, use StringBuilder
.
It’s faster, and more importantly, it creates much less objects for the garbage collector to clean up.
This post is licensed under
CC BY 4.0
by the author.