- 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.
推薦閱讀
- Learning Single:page Web Application Development
- Mastering Concurrency Programming with Java 8
- Apache Oozie Essentials
- OpenDaylight Cookbook
- Pandas Cookbook
- iOS 9 Game Development Essentials
- 深入淺出DPDK
- 程序員修煉之道:通向務實的最高境界(第2版)
- HTML5 APP開發從入門到精通(微課精編版)
- Visual Studio Code 權威指南
- 算法設計與分析:基于C++編程語言的描述
- HikariCP數據庫連接池實戰
- Spring Boot 3:入門與應用實戰
- Natural Language Processing with Python Cookbook
- Python服務端測試開發實戰