Inspectopedia
 
2024.3

Dictionary creation can be rewritten by dictionary literal

Info
New
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: