void SameIndexOnArray(CustomIndexerOneArg obj) { obj["foo"] = 42; // Compliant, not a collection or dictionary obj["foo"] = 42; // Compliant, not a collection or dictionary }
void SameIndexOnArray(CustomIndexerOneArg obj) { obj["foo"] = 42; // Secondary obj["foo"] = 42; // Noncompliant }