Language: C# | Type: CODE_SMELL | Severity: Minor
Tags: design
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.
public int this[MyCustomClass index] // Noncompliant
{
// get and set accessors
}