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.

Using CompareTo() to sort based on multiple columns

Currently I have an object implementing the IComparable interface (ASP.NET 3.5, VB). When I place several instantiated objects into a …

asp.net generics sorting icomparable
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
Customize sorting of Treeview

I have a treeview that need to be sorted according to the tag of every node and also according to …

c# winforms sorting treeview icomparable
C# - How to implement multiple comparers for an IComparable<T> class?

I have a class that implements IComparable. public class MyClass : IComparable<MyClass> { public int CompareTo(MyClass c) { return …

c# sorting compare icomparable
What problem does IStructuralEquatable and IStructuralComparable solve?

I've noticed these two interfaces, and several associated classes, have been added in .NET 4. They seem a bit superfluous to …

.net equality icomparable iequalitycomparer