roslyn-analyzers icon indicating copy to clipboard operation
roslyn-analyzers copied to clipboard

Avoid string.Join in interpolated string

Open bcollamore opened this issue 1 year ago • 0 comments

This code return $@"{CommandType} Reasons:{string.Join(Environment.NewLine, ReasonList)}"; can be simplified to: return $@"{CommandType} Reasons:{Environment.NewLine}{ReasonList}}";

bcollamore avatar Nov 11 '23 22:11 bcollamore