In my last article I pointed out that Microsoft has given us no less than nine different general-purpose interfaces to perform the simple task of comparing objects to see if they are equal, or if one is greater than the other.
And I ended with a quick quiz. Could you identify those nine interfaces?
Continue reading “IEquatable and All That: The Nine Comparisons Interfaces”
My new Pluralsight course, C# Equality and Comparisons, has been published this week, bringing my total to 3 courses with the two existing courses. Math for Programmers and C# Collections Fundamentals.
C# Equality and Comparisons was largely spawned out of the earlier C# Collections course: Back in February this year, I was writing samples for that course to demonstrate making dictionaries case-insensitive. The easiest way to do that is to supply a case-insensitive equality comparer to the dictionary constructor, like this: Continue reading “C# Equality and Comparisons Published”
Last time I promised a blog about Pythagoras. That was a long time ago because I kept getting distracted by writing Pluralsight courses and – well – basically things that – unlike this blog – actually earn me money! But I really should honour my promises so… Continue reading “Pythagoras? Easy Peasy!”