Report when ToString
is called on an instance of a type that doesn't override ToString
:
object o = ...;
o.ToString(); // compliant as ToString may be overridden
var o = new Foo();
o.ToString(); // Non-compliant as Foo doesn't override ToString and is sealed
sealed class Foo {}