The easiest way is to create a console application and then add a new class library by right-clicking on your solution, and selecting Add and then New Project from the context menu.
From the Add New Project dialog screen, select Class Library from the installed templates and call your class Chapter15.
Your new class library will be added to your solution with a default name of Class1.cs, which we renamed Recipes.cs in order to distinguish the code properly. You can, however, rename your class whatever you like if that makes more sense to you.
To rename your class, simply click on the class name in the Solution Explorer and select Rename from the context menu.
Visual Studio will ask you to confirm a rename of all references ...
With Safari, you learn the way you learn best. Get unlimited access to videos, live online training,
learning paths, books, interactive tutorials, and more.