- 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.
推薦閱讀
- GraphQL學習指南
- Python自動化運維快速入門
- 區塊鏈架構與實現:Cosmos詳解
- 零基礎入門學習Python
- 0 bug:C/C++商用工程之道
- JSP程序設計實例教程(第2版)
- Lift Application Development Cookbook
- Mastering ASP.NET Core 2.0
- Java設計模式深入研究
- Mastering Machine Learning with R
- Getting Started with Web Components
- Kohana 3.0 Beginner's Guide
- Tkinter GUI Application Development Blueprints
- Learning Java by Building Android Games
- Spark內核設計的藝術:架構設計與實現