Skip to Content
.NET Standard 2.0 Cookbook
book

.NET Standard 2.0 Cookbook

by Fiqri Ismail
May 2018
Intermediate to advanced content levelIntermediate to advanced
394 pages
9h 51m
English
Packt Publishing
Content preview from .NET Standard 2.0 Cookbook

How it works...

In steps 1 to 7, we opened an existing Visual Studio solution and added a new project to it. The newly added project is a .NET-based console application. In steps 9 to 11, we added the reference to the .NET Standard 2.0 library project. This is an important step. To use the functionality in the library, you must add the project as a reference.

In step 13, we added code to use the libraries' first method. The first line of code will define a variable to hold the instance of the Helpers() class. The var keyword helps you to create a local variable without giving an explicit type. It simply tells the compiler to get the type of variable from the expression on the right-hand side of the initialization statement. For example, see ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

C# 7 and .NET Core 2.0 High Performance

C# 7 and .NET Core 2.0 High Performance

Ovais Mehboob Ahmed Khan
.NET Core 2.0 By Example

.NET Core 2.0 By Example

Neha Shrivastava, Rishabh Verma

Publisher Resources

ISBN: 9781788834667Supplemental Content