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

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.

主站蜘蛛池模板: 梅河口市| 大冶市| 达孜县| 逊克县| 河北省| 达日县| 白河县| 中江县| 秦皇岛市| 巧家县| 安溪县| 长武县| 五常市| 洪泽县| 邢台县| 修武县| 璧山县| 高邑县| 莱西市| 喜德县| 张北县| 娄烦县| 高阳县| 大兴区| 洛宁县| 台东县| 磴口县| 穆棱市| 安龙县| 元氏县| 阿克苏市| 太康县| 布尔津县| 兴文县| 龙门县| 渭源县| 黔南| 三门峡市| 秭归县| 都匀市| 马鞍山市|