Poor documentation on the "why" of this rule.
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
Edit to trigger priority labeling.
@johnnyasantoss The article states that jagged arrays use less memory space than multidimensional arrays. @mavasani Can you comment on whether this is the only reason why CA1814 recommends jagged arrays over multidimensional?
This SO post has a nice discussion of the pros and cons of each. In July 2017, one user noted that according to their calculations, in .NET Core, multi-dimensional arrays are faster than jagged arrays. If that is true, should we get rid of CA1814?
Updated content links
Moved issue to .NET
Closing this in favor of https://github.com/dotnet/docs/issues/22047
Most helpful comment
@johnnyasantoss The article states that jagged arrays use less memory space than multidimensional arrays. @mavasani Can you comment on whether this is the only reason why CA1814 recommends jagged arrays over multidimensional?
This SO post has a nice discussion of the pros and cons of each. In July 2017, one user noted that according to their calculations, in .NET Core, multi-dimensional arrays are faster than jagged arrays. If that is true, should we get rid of CA1814?