- 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;
推薦閱讀
- Java逍遙游記
- Mastering Concurrency Programming with Java 8
- Mobile Web Performance Optimization
- Pandas Cookbook
- Implementing Cisco Networking Solutions
- Mastering Kali Linux for Web Penetration Testing
- Visual Basic學習手冊
- Visual C++數字圖像處理技術詳解
- Oracle JDeveloper 11gR2 Cookbook
- The DevOps 2.5 Toolkit
- 微服務架構深度解析:原理、實踐與進階
- PHP從入門到精通(第4版)(軟件開發視頻大講堂)
- 基于ARM Cortex-M4F內核的MSP432 MCU開發實踐
- INSTANT Yii 1.1 Application Development Starter
- Odoo 10 Implementation Cookbook