rspec/rules/S927/why-dotnet.adoc
2023-06-09 16:17:40 +02:00

11 lines
511 B
Plaintext

== Why is this an issue?
Parameters are part of the {methodSignatureLine}[method signature] and its identity.
Implementing a method from an interface, a base class, or a partial method and changing one of its parameters' names will confuse and impact its readability.
include::{noncompliantCode}[]
To avoid any ambiguity in the code, parameters' names should match the initial declaration, whether its initial declaration is from an interface, a base class, or a partial method.
include::{compliantCode}[]