O'Reilly logo

C# 7 and .NET Core Cookbook by Dirk Strauss

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required