rspec/rules/S1123/csharp/rule.adoc
2022-11-29 16:57:02 +01:00

43 lines
632 B
Plaintext

include::../description-dotnet.adoc[]
== Noncompliant Code Example
[source,csharp]
----
public class Car
{
[Obsolete] // Noncompliant
public void CrankEngine(int turnsOfCrank)
{ ... }
}
----
== Compliant Solution
[source,csharp]
----
public class Car
{
[Obsolete("Replaced by the automatic starter")]
public void CrankEngine(int turnsOfCrank)
{ ... }
}
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::message.adoc[]
'''
== Comments And Links
(visible only on this page)
include::../comments-and-links.adoc[]
endif::env-github,rspecator-view[]