- Beginning C# 7 Hands-On:Advanced Language Features
- Tom Owsiak
- 78字
- 2021-07-02 15:29:18
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.
推薦閱讀
- 演進式架構(原書第2版)
- 從零構建知識圖譜:技術、方法與案例
- Microsoft Dynamics 365 Extensions Cookbook
- 實用防銹油配方與制備200例
- 全棧自動化測試實戰:基于TestNG、HttpClient、Selenium和Appium
- Instant Lucene.NET
- Modern C++ Programming Cookbook
- Android Studio Cookbook
- 計算機應用技能實訓教程
- Natural Language Processing with Python Quick Start Guide
- 30天學通C#項目案例開發
- SEO教程:搜索引擎優化入門與進階(第3版)
- Android 5從入門到精通
- PHP 7 Programming Blueprints
- 系統分析師UML用例實戰