I need to replace all System.Environment.Newline(s)
in the string returned by my function with System.Environment.Newline + \t
(as I am trying to apply indenting) and I need to do this several times.
My question is which one is the most efficient way to do this?
I know that StringBuilder
is faster than String.Replace
but I dont know about Regex.Replace
.