rspec/rules/S6610/how-dotnet.adoc

4 lines
276 B
Plaintext
Raw Permalink Normal View History

== How to fix it
If you are targeting a runtime version equal or greater than `.NET Core 2.0`, the `string.StartsWith` and `string.EndsWith` overloads are available, with the argument's type being `char` instead of `string`. Thus, an argument of `char` type can be provided.