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

How it works...

Let's see what we have done so far in this recipe and how it works. In steps 1 to 3, you have created a blank solution. Blank solutions are a very good starting point for any size of project. It gives you a whole new solution to start with. Later on, you can add more bits and pieces to your solution. Even though this is a simple introduction to class libraries, it is good practice to stick with proper naming conventions. It's not a must, but good practice. As you can see, we have given a name Chapter1.Library, so the name is meaningful and it says what our solution is about. 

In the next steps, from 4 to 8, we have added a class library project to our blank solution. Now you have an idea how a solution will grow over time, from start to end. The template we have chosen is a full .NET Framework class library. We renamed the default Class1.cs template provided by Visual Studio. It's good practice to give a meaningful name to classes and the files we work with. 

In steps 9 and 10, we added code to our class and checked all the syntax was correct by building the solution. It is also good practice to check for typos and other errors in syntax once in a while.

主站蜘蛛池模板: 平湖市| 民勤县| 许昌县| 汕头市| 博爱县| 神池县| 永德县| 喀喇沁旗| 阿勒泰市| 永昌县| 阳山县| 太白县| 东莞市| 鄂尔多斯市| 鄂尔多斯市| 安多县| 南陵县| 都安| 天门市| 会泽县| 根河市| 邵阳县| 平遥县| 南京市| 平潭县| 康马县| 湘西| 昭苏县| 平邑县| 乐陵市| 肥城市| 治县。| 松滋市| 咸丰县| 新建县| 如皋市| 山东省| 寿宁县| 偏关县| 农安县| 兴安县|