rspec/rules/S2259/csharp/exception-code-unreachable.adoc
2023-07-03 17:26:15 +02:00

11 lines
157 B
Plaintext

[source,csharp]
----
public void Method()
{
object o = null;
if (false)
{
o.ToString(); // Compliant: code is unreachable
}
}
----