Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 342 Bytes

MA0095.md

File metadata and controls

14 lines (12 loc) · 342 Bytes

MA0095 - A class that implements IEquatable<T> should override Equals(object)

class Test : IEquatable<T> // non-compliant
{
    public bool Equals(Test other) => throw null;
}

class Test : IEquatable<T> // ok
{
    public override bool Equals(object other) => throw null;
    public bool Equals(Test other) => throw null;
}