What is IComparable in C# with example?

C# IComparable interface The IComparable interface defines a generalized type-specific comparison method that a value type or class implements to order or sort its instances . The IComparable is implemented by types whose values can be ordered or sorted. The interface requires the CompareTo method to be implemented.

Sizin İçin Seçtik  Altın ons yükselince ne olur?

Leave a Reply

Your email address will not be published. Required fields are marked *