IComparable vs IComparer vs Comparison Delegate

added by DotNetKicks
10/25/2022 4:53:27 PM

482 Views

In this article, we're going to learn about the IComparable and the IComparer interfaces, and the Comparison delegate. In C#, if we have an array of types such as integers or strings, it supports inbuilt comparison and sorting. This is because it implements the IComparer interface.


0 comments