42 lines
557 B
Plaintext
42 lines
557 B
Plaintext
== Why is this an issue?
|
|
|
|
include::../description.adoc[]
|
|
|
|
=== Noncompliant code example
|
|
|
|
[source,csharp]
|
|
----
|
|
public class Program
|
|
{
|
|
public void WriteMatrix(int[][] matrix) // Non-Compliant
|
|
{
|
|
}
|
|
}
|
|
----
|
|
|
|
=== Compliant solution
|
|
|
|
[source,csharp]
|
|
----
|
|
public class Matrix
|
|
{
|
|
// ...
|
|
}
|
|
|
|
public class Program
|
|
{
|
|
public void WriteMatrix(Matrix matrix) // Compliant
|
|
{
|
|
}
|
|
}
|
|
----
|
|
ifdef::env-github,rspecator-view[]
|
|
|
|
'''
|
|
== Implementation Specification
|
|
(visible only on this page)
|
|
|
|
include::../message.adoc[]
|
|
|
|
endif::env-github,rspecator-view[]
|