26 June 2023

26 June 2023

Tags:

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.