Top "Icomparer" questions

IComparer is an interface provided by the .NET framework, used in conjunction with the Array.

Implementing custom IComparer<> (with example)

Ive just written the following code, which will order strings by their native string.Compare() but allow a collection of …

c# compare icomparer
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
Where is the inconsistency in this Icomparer that is causing a null reference?

I'm receiving a null object in my custom IComparer implementation despite no null entries in the collection it is being …

c# .net compare icomparable icomparer
Problem with custom IComparer for List (sort) - c#

can anyone help, i have problem doing a sort, I thought i had it sorted but appears not to be …

c# list sorting ilist icomparer
How can I make my generic comparer (IComparer) handle nulls?

I'm trying to write a generic object comparer for sorting, but I have noticed it does not handle the instance …

c# .net sorting icomparer
How to compare multiple object values against each other?

Assume i have a object with the following values in it (also please note i do not wish to use …

c# icomparer
using Comparer to sort IEnumerable in C# by different fields

I have a list of an object which need to be sorted depending on three different properties of the object. …

c# linq icomparer