Top "Icomparable" questions

Defines a generalized comparison method that a value type or class implements to create a type-specific comparison method for ordering instances.

How to Implement IComparable interface?

I am populating an array with instances of a class: BankAccount[] a; . . . a = new BankAccount[] { new BankAccount("George Smith", 500m), …

c# interface icomparable
How to compare values of generic types?

How do I compare values of generic types? I have reduced it to a minimal sample: public class Foo<…

c# .net generics icomparable
difference between IComparable and IComparer

What is the difference between IComparable and IComparer Interfaces? Is it necessary to use this interface always with Array.Sort() …

c# .net icomparable icomparer
When to use IComparable<T> Vs. IComparer<T>

I'm trying to figure out which of these interfaces I need to implement. They both essentially do the same thing. …

.net icomparable icomparer
What's the difference between IComparable & IEquatable interfaces?

both the interfaces seem to compare objects for equality, so what's the major differences between them?

c# interface icomparable iequatable
Generics and Implementing IComparable

I am very new to generics and I am trying to write a simple class which will be generic but …

c# .net generics icomparable
What sorting algorithm does the .NET framework implement

Could anyone please advise when implementing something like IComparable in .NET what sorting algorithm does .NET use to actually sort …

c# sorting collections icomparable
How to sort a list of objects with IComparable and IComparer

I'm trying to implement the same example of this link but more oriented on the number of dependent kids. http://…

c# list sorting icomparable icomparer
"At least one object must implement IComparable" for an INT? As far as I know, it does

Ok, I have a simple IEnumerable<HtmlString> things and I want to divide it up into four equal …

c# asp.net-mvc icomparable
How to find max value in a column in a datarow[] ?

I have a simple problem but I just don't understand any of the examples I find here or in MSDN. (…

c# ienumerable max datarow icomparable