- Beginning C# 7 Hands-On:Advanced Language Features
- Tom Owsiak
- 102字
- 2021-07-02 15:29:18
Summary
In this chapter, you learned about generic methods, which are methods that can operate on different data types. You also learned about constraining a method in terms of the data types that it can operate on, a concept called constraints. You created a GenMethods class, wrote a Swap function, compared values using the CompareTo method, learned about constraints, and modified the program to perform additional types of comparisons and to work with different data types.
In the next chapter, you will learn about up casting, down casting, and then how to implement a generic interface and how that exactly helps us.
推薦閱讀
- Python程序設計(第3版)
- Visual C++串口通信技術詳解(第2版)
- Mastering Rust
- The HTML and CSS Workshop
- 計算機應用基礎教程(Windows 7+Office 2010)
- 快速入門與進階:Creo 4·0全實例精講
- 人工智能算法(卷1):基礎算法
- 網絡數據采集技術:Java網絡爬蟲實戰
- 物聯網系統架構設計與邊緣計算(原書第2版)
- Software Architecture with Python
- Java Web入門很輕松(微課超值版)
- Java EE 程序設計
- C#編程魔法書
- Xamarin Cross-platform Application Development(Second Edition)
- 軟件測試(第2版)