Visualstudio-docs: Poor documentation in CA1814

Created on 24 Apr 2019  Â·  4Comments  Â·  Source: MicrosoftDocs/visualstudio-docs

Poor documentation on the "why" of this rule.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri2 doc-bug visual-studio-windowprod vs-ide-code-analysitech

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?

All 4 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Crono1981 picture Crono1981  Â·  3Comments

jnpwly picture jnpwly  Â·  3Comments

wittelw picture wittelw  Â·  3Comments

suhailmahmood picture suhailmahmood  Â·  3Comments

rlundy picture rlundy  Â·  3Comments