
We learned about array sorting using IComparable and IComparer. we implemented the Generics form of the interfaces IComparable IComparer. we also performed casting using (type)obj.

More topics covered:
-
- default value of an object inside a class is null
- as + null check is better than is + casting
- IComparer class could be in the same class file
- reverse sort order
Links: