rspec/rules/S2360/csharp/rule.adoc

31 lines
451 B
Plaintext
Raw Normal View History

2020-06-30 12:48:07 +02:00
include::../description.adoc[]
== Noncompliant Code Example
----
void Notify(string company, string office = "QJZ") // Noncompliant
{
}
----
== Compliant Solution
----
void Notify(string company)
{
Notify(company, "QJZ");
}
void Notify(string company, string office)
{
}
----
include::../exceptions.adoc[]
ifdef::rspecator-view[]
== Comments And Links
(visible only on this page)
include::../comments-and-links.adoc[]
endif::rspecator-view[]