Maybe you have heard of StringBuilder but never used it, well in most cases concating a string is good enought.
But in some rare cases you can use stringbuilder i show you why.
Here is an example
as you can see string += is pretty much slower then stringbuilder and thats because string is not mutable.
Everytime you set text to a string it will create a new location in memory for placing the text meanwhile stringbuilder is mutable it has the same instance in memory, so when should you use stringbuilder?
Well i would say it is upto you too choose most cases you don’t.
But for performance it could be useful, i learnt this when i wrote code for a barcode scanner couple years ago.
There might be even better ways todo this, but this is the one i know of.