String Interpolation and StringBuilder
09/25/2021
This post looks into different approaches and their performance characteristics for appendnng interpolated like strings. I use BenchmarkDotNet to benchmark the different solutions. In case of all benchmarks I have 3 string
properties A
, B
and C
each holding one of these values:
hello
world
how are you
The values of these variables are set in a Global setup step of BencharmarkDotNet. In all benchmarks the three string are concatenate with some punctuations.