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 preferred argument style for string literal values

Last modified: 11 February 2024

If you prefer to use named arguments for specific types of parameters, ReSharper can help you enforce this practice.

By default, ReSharper suggests using positional arguments, but you can opt for using named arguments with the corresponding selector in the Arguments group on the Code Editing | C# | Syntax Style page of ReSharper options Alt+R, O. For more information about configuring and enforcing your preferences for positional/named arguments, refer to Code Syntax Style: Named/Positional Arguments.