All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonar.plugins.csharp.S3876.html Maven / Gradle / Ivy

There is a newer version: 10.2.0.105762
Show newest version

Why is this an issue?

Strings and integral types are typically used as indexers. When some other type is required, it typically indicates design problems, and potentially a situation where a method should be used instead.

Noncompliant code example

public int this[MyCustomClass index]  // Noncompliant
{
    // get and set accessors
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy