- Beginning C# 7 Hands-On:Advanced Language Features
- Tom Owsiak
- 80字
- 2021-07-02 15:29:13
Creating a generics class
Bring up a project, and go to Solution Explorer; right-click, select Add, and click on Class. Name the class GenericsClass; a simple generics class. Then, click on OK. When the Visual Studio message comes up, click on Yes.
For our purposes, you don't need any of the using System lines at the top, nor any of the comments underneath, so delete them. Your initial screen should look like Figure 1.1.1:

Figure 1.1.1: The initial GenericsClass.cs screen
推薦閱讀
- Extending Jenkins
- Learning Cython Programming
- 造個小程序:與微信一起干件正經事兒
- HTML5+CSS3基礎開發教程(第2版)
- Spring Cloud、Nginx高并發核心編程
- Scratch 3.0少兒編程與邏輯思維訓練
- Python數據分析(第2版)
- 深度強化學習算法與實踐:基于PyTorch的實現
- 名師講壇:Spring實戰開發(Redis+SpringDataJPA+SpringMVC+SpringSecurity)
- Linux:Embedded Development
- Java EE核心技術與應用
- 學習OpenCV 4:基于Python的算法實戰
- Java Web開發詳解
- RESTful Java Web Services(Second Edition)
- Python:Deeper Insights into Machine Learning