Skip to content

Formatters

Michael Damatov edited this page Sep 10, 2025 · 1 revision

Formatters

Suggests removing or replacing format specifiers with equivalent expressions that are more readable or improving performance. Also checks if a specified format provider can be removed when the format specifier doesn't use it.

Analyzed:

  • ToString methods of base types
  • string interpolation expressions (well-known handlers only)
  • the string formatting methods (well-known methods only)
  • parsing methods of base types

Tip

Quick fixes are available.

Note

The analyzers can be configured or deactivated in the ReSharper Options or Rider Settings dialog.

Clone this wiki locally