rspec/rules/S927/why-dotnet.adoc

12 lines
522 B
Plaintext
Raw Permalink Normal View History

2023-06-09 16:17:40 +02:00
== 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 the method's readability.
2023-06-09 16:17:40 +02:00
include::{noncompliantCode}[]
To avoid any ambiguity in the code, a parameter's name should match the initial declaration, whether its initial declaration is from an interface, a base class, or a partial method.
2023-06-09 16:17:40 +02:00
include::{compliantCode}[]