Why is this an issue?
Exposing methods with multidimensional array parameters requires developers to have advanced knowledge about the language in order to be able to
use them. Moreover, what exactly to pass to such parameters is not intuitive. Therefore, such methods should not be exposed, but can be used
internally.
Noncompliant code example
public class Program
{
public void WriteMatrix(int[][] matrix) // Non-Compliant
{
}
}
Compliant solution
public class Matrix
{
// ...
}
public class Program
{
public void WriteMatrix(Matrix matrix) // Compliant
{
}
}