- Beginning C# 7 Hands-On:Advanced Language Features
- Tom Owsiak
- 68字
- 2021-07-02 15:29:14
Making parameters that are generic
Now, in the following line, enter the following:
public GenericsClass(T[] input)
As you can see, you can also make parameters that are generic like this one. This is a parameter, input is the name of it, and the type is T. So, it's a generic array.
Next, enter the following between a set of curly braces beneath the preceding line:
vals = input;
推薦閱讀
- Extending Jenkins
- VMware View Security Essentials
- Python高級機器學習
- 大學計算機基礎(第2版)(微課版)
- Learning Zurb Foundation
- Learning Probabilistic Graphical Models in R
- HTML5 APP開發從入門到精通(微課精編版)
- PHP+MySQL+Dreamweaver動態網站開發從入門到精通(第3版)
- C專家編程
- Orleans:構建高性能分布式Actor服務
- JavaScript Concurrency
- 少兒編程輕松學(全2冊)
- Ionic3與CodePush初探:支持跨平臺與熱更新的App開發技術
- Developing Java Applications with Spring and Spring Boot
- PHP 7 Programming Blueprints