Portability analyzer tool reports not compatible for Array.Reverse example but Microsoft API documentation has it in the examples

Mallesh_MS 1 Reputation point
2023-01-06T10:23:32.69+00:00

I have created .NET core 2.0 project and added the below code

int nMonths = DateTimeFormatInfo.CurrentInfo.Calendar.GetMonthsInYear(DateTime.Now.Year);  
      int[][] months = new int[nMonths][];  
Array.Reverse(months);  

(complete code is available here( jagged array example) system.array.reverse)

when i ran the Portability analyser tool,tool gives report as not compatible for Array.Reverse(months); i.e. Jagged array example but Microsoft API document added that example in the documentation.
since in my current .net core 2.0 project, i have an byte[] data and portability analyser tool report gives as not compatible for .NET standard 2.0 compatibility , i am confused about the result from Portability analyser .
Please suggest your inputs regarding this issue.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,918 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
337 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,166 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.