官术网_书友最值得收藏!

Implementing a Generic Interface to Accomplish Sorting

In this chapter, you'll learn upcasting and downcasting and then how to implement a generic interface and how exactly that helps us.

Imagine that you have a list of objects, which you have made of your own type, and you want to sort them. You'll need to figure out just how you can sort these objects. This comes from implementing IComparable, a generic interface that can act on different data types.

主站蜘蛛池模板: 铜川市| 雷波县| 阿尔山市| 景宁| 赣榆县| 池州市| 常德市| 镇宁| 抚宁县| 抚松县| 皋兰县| 乌审旗| 江阴市| 将乐县| 来安县| 隆回县| 邵阳市| 阳春市| 浙江省| 长岭县| 苗栗县| 扶风县| 松滋市| 淮南市| 涟源市| 滦南县| 同仁县| 漳平市| 昌都县| 常德市| 顺义区| 楚雄市| 宣化县| 福州市| 花莲县| 浙江省| 北流市| 昭苏县| 平顶山市| 凯里市| 朔州市|