Posts Tagged ‘C# mixins Ruby extension methods multiple inheritance’

A Mixin for IComparable<T>

Following on from my other posts on C# Mixins, here’s a short one to demonstrate the benefits of Mixins using IComparable<T>. I don’t know about you, but I can never remember how the CompareTo method of IComparable<T> works. If I remember correctly, it gives back -1 if the value of the compared object is less [...]

More »