C#


ROSLYN.PERFORMANCE.CA1865 : Use char overload, CA1865 (C#)

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

Summary

The char overload is a better performing overload than a string with a single char.

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

Properties

Class Name Use char overload, CA1865 (C#)
Significance reliability
Mnemonic ROSLYN.PERFORMANCE.CA1865
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 char overload, CA1865 (C#)"

Relevant Configuration File Parameters

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