Tag Archives: IComparable

Implement an interface in C#

Before you can implement an interface, you need to know what an interface is. An interface defines properties, methods, and events that an object must provide to satisfy the interface without providing any implementation of those features. If a class … Continue reading

Posted in interfaces, OOP | Tagged , , , , , , , , , , | 1 Comment

Sort objects in C#

This example shows how you can easily sort objects in C#. Sorting algorithms are absolutely fascinating and I recommend that everyone study them at some point. Different algorithms demonstrate interesting and useful techniques such as recursion, divide-and-conquer, linked data structures, … Continue reading

Posted in algorithms | Tagged , , , , , , , , , , , , , , | Leave a comment