C#


ROSLYN.PERFORMANCE.CA1814 : Prefer jagged arrays over multidimensional (C#)

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

Summary

A jagged array is an array whose elements are arrays. The arrays that make up the elements can be of different sizes, leading to less wasted space for some sets of data.

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

Properties

Class Name Prefer jagged arrays over multidimensional (C#)
Significance reliability
Mnemonic ROSLYN.PERFORMANCE.CA1814
Categories None
Availability Available for C# only.
Enabling Checks for this warning class are disabled by default. To enable them, add the following WARNING_FILTER rule to the project configuration file.
WARNING_FILTER += allow class="Prefer jagged arrays over multidimensional (C#)"

Relevant Configuration File Parameters

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