Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 268 Bytes

MA0094.md

File metadata and controls

13 lines (11 loc) · 268 Bytes

MA0094 - A class that provides CompareTo(T) should implement IComparable<T>

class Test // non-compliant
{
    public int CompareTo(Test other) => throw null;
}

class Test : IComparable<T> // ok
{
    public int CompareTo(Test other) => throw null;
}