C# - How to implement multiple comparers for an IComparable class?

后端 未结 4 1382
时光取名叫无心
时光取名叫无心 2020-12-30 08:22

I have a class that implements IComparable.

public class MyClass : IComparable
{
    public int CompareTo(MyClass c)
    {
        return this         


        
4条回答
提交回复
热议问题