- 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;
推薦閱讀
- Dynamics 365 for Finance and Operations Development Cookbook(Fourth Edition)
- Clojure Programming Cookbook
- Mastering Selenium WebDriver
- Cocos2d-x游戲開發:手把手教你Lua語言的編程方法
- Android 7編程入門經典:使用Android Studio 2(第4版)
- R語言編程指南
- Learning Apache Karaf
- 小程序,巧應用:微信小程序開發實戰(第2版)
- Visual Studio Code 權威指南
- JSP程序設計實例教程(第2版)
- Visual Basic程序設計(第三版)
- Mastering JavaScript
- SEO教程:搜索引擎優化入門與進階(第3版)
- 零基礎學SQL(升級版)
- Python高性能編程(第2版)