Code inspection: Empty string style
In C#, you can assign empty strings either with an empty literal "" or with the string.Empty property. JetBrains Rider allows you to specify the style for empty strings and enforce this style in the desired scope.
By default, JetBrains Rider suggests using empty literals "" and reports usages of the string.Empty property — it highlights such usages and suggests the corresponding quick-fix or fix in scope.
For more information about configuring and enforcing your preferences for empty strings, refer to Code Syntax Style: Empty string.
10 March 2026