rspec/rules/S1186/csharp/notsupported-code.adoc
2023-06-09 14:51:36 +02:00

7 lines
299 B
Plaintext

You can make clear the initial intention not to implement the method in the future by throwing the https://learn.microsoft.com/en-us/dotnet/api/system.notsupportedexception[`NotSupportedException`].
[source,csharp]
----
void DoSomething() => // Compliant
throw new NotSupportedException();
----