ReSharper
 
Get ReSharper
Get your hands on the new features ahead of the release by joining the Early Access Program for ReSharper 2025.1! Learn more

Code inspection: Use string interpolation expression

Last modified: 08 April 2024

Starting from C# 6.0, you can use string interpolation expressions instead of calling String.Format(). If you pass a lot of arguments to the String.Format() method, the string becomes difficult to understand. Compared to String.Format(), interpolated string expressions allow inserting variables directly in the string.