rspec/rules/S1186/vbnet/notsupported-code.adoc

8 lines
287 B
Plaintext
Raw Normal View History

2023-06-09 14:51:36 +02:00
By throwing the https://learn.microsoft.com/en-us/dotnet/api/system.notsupportedexception[`NotSupportedException`], it makes clear the initial intention not to implement it in the future.
[source,vbnet]
----
Sub DoSomething() ' Compliant
Throw New NotSupportedException
End Sub
----