How to do it...

  1. 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.
  1. From the Add New Project dialog screen, select Class Library from the installed templates and call your class Chapter15.
  1. 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.
  2. To rename your class, simply click on the class name in the Solution Explorer and select Rename from the context menu.
  1. Visual Studio will ask you to confirm a rename of all references ...

Get C# 7 and .NET Core Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.