官术网_书友最值得收藏!

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
主站蜘蛛池模板: 正定县| 克东县| 温州市| 惠来县| 吴桥县| 开阳县| 闸北区| 会东县| 太保市| 巴林左旗| 马关县| 新晃| 北票市| 寿光市| 临潭县| 包头市| 东至县| 东兰县| 慈利县| 理塘县| 越西县| 宁远县| 博兴县| 绥宁县| 连江县| 土默特左旗| 彭山县| 双城市| 兰坪| 潞西市| 德阳市| 罗山县| 锡林浩特市| 同仁县| 长沙市| 深水埗区| 武宣县| 高唐县| 长顺县| 桦南县| 湘乡市|