C#


ROSLYN.PERFORMANCE.CA1863 : Use 'CompositeFormat' (C#)

See Roslyn-Detected C# Warning Classes for more information.

Summary

Cache and use a 'CompositeFormat' instance as the argument to this formatting operation, rather than passing in the original format string. This reduces the cost of the formatting operation.

This check corresponds to Roslyn rule CA1863. For full rule details, see the Microsoft website: CA1863.

Properties

Class Name Use 'CompositeFormat' (C#)
Significance reliability
Mnemonic ROSLYN.PERFORMANCE.CA1863
Categories None
Availability Available for C# only.
Enabling Checks for this warning class are enabled by default. To disable them, add the following WARNING_FILTER rule to the project configuration file.
WARNING_FILTER += discard class="Use 'CompositeFormat' (C#)"

Relevant Configuration File Parameters

The following configuration file parameters affect checks for this warning class.