rspec/rules/S6608/how-dotnet.adoc

4 lines
264 B
Plaintext

== How to fix it
If the type you are using implements `IList`, `IList<T>` or `IReadonlyList<T>`, it implements `this[int index]`. This means calls to `First`, `Last`, or `ElementAt(index)` can be replaced with indexing at `0`, `Count-1` and `index` respectively.