rspec/rules/S2259/csharp/exception-code-unreachable.adoc

11 lines
157 B
Plaintext
Raw Normal View History

2023-07-03 17:26:15 +02:00
[source,csharp]
----
public void Method()
{
object o = null;
if (false)
{
o.ToString(); // Compliant: code is unreachable
}
}
----