Month: August 2019

C# code optimization

1. Use of StringBuilder Many times, we needed to modify string. Like we needed to append some text to a string. E.g. string s = "First"; /*Here, New string will be created in memory and address of the memory location will be assigned to variable s.*/ s = s + "Second"; /*It won't modify existing string … Continue reading C# code optimization