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 than [...]
Lesen Sie den vollständigen Eintrag unter http://richardbushnell.net/index.php/2007/12/27/a-mixin-for-icomparablet/