roslynator
roslynator copied to clipboard
Convert String.Concat to interpolated string
trafficstars
I have some legacy code which uses quite a lot of String.Concat like the following snippet.
Is it possible to add an analyzer to convert them to interpolated strings?
var t = String.Concat(DateTime.Now, " ", LogLevel.Info, ": ", log.Content);
Expected result:
var t = $"{DateTime.Now} {LogLevel.Info}: {logContent}");