Rule “[Unused private types or members should be removed]”
incorrectly says “Remove the unused private property ‘IDataErrorInfo.this[]
’.”
SonarQube 8.0 (through Codacy website)
(And I have not seen any fix in changelog for version 8.1)
Minimal Code:
namespace Issue
{
public class Foo : System.ComponentModel.IDataErrorInfo
{
string IDataErrorInfo.this[string propertyName] { get { return null; /* Not relevant for sample */ } }
string IDataErrorInfo.Error { get { return null; /* Not relevant for sample */ } }
}
}