Tags » Ordering

How to declare natural ordering by implementing the generic IComparer interface in C# .NET

In this post we showed how to declare natural ordering for a custom type by implementing the generic IComparable interface. We saw that it required us to implement the CompareTo method. 515 more words

C#

Student Book Budgets: The Final Lists

It has been a long road to the final book lists this year, but our student book budget group has done it! ¬†They’ve taken over $4,000 worth of books and narrowed it down to our final order. ¬† 895 more words

Student Participation

How to declare natural ordering by implementing the generic IComparable interface in C# .NET

Primitive types such as integers can be ordered naturally in some way. Numeric and alphabetical ordering comes in handy with numbers and strings. However, there’s no natural ordering for your own custom objects with a number of properties. 298 more words

C#

alphabet soup

I ordered my favorite lunch at my favorite restaurant – alphabet soup with extra vowels.

Quips