Dictionary creation can be rewritten by dictionary literal

Last modified: 03 December 2024

Reports situations when you can rewrite dictionary creation by using a dictionary literal.

This approach brings performance improvements.

Example:

When the quick-fix is applied, the code changes to: